From 95d30dbdcf2a4ced1d0fd4f4b3d4d11ae7b903e9 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 9 Jul 2022 10:44:22 +0800 Subject: [PATCH] profiles/dev: fix custom functions... again --- modules/home-manager/profiles/dev.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/home-manager/profiles/dev.nix b/modules/home-manager/profiles/dev.nix index 699f92ab..b7840acc 100644 --- a/modules/home-manager/profiles/dev.nix +++ b/modules/home-manager/profiles/dev.nix @@ -47,7 +47,7 @@ in { dir=''${1:-$PWD} dest=$(${pkgs.fd}/bin/fd --type directory --hidden --ignore-vcs --base-directory "$dir" \ | ${pkgs.fzf}/bin/fzf --prompt "Go to directory ") - destPrime=$(${pkgs.coreutils}/bin/realpath --canonicalize-existing --logical "$dest") + destPrime=$(${pkgs.coreutils}/bin/realpath --canonicalize-existing --logical "$dir/$dest") [ "$dest" ] && cd "$destPrime" } @@ -56,7 +56,7 @@ in { dir=''${1:-$PWD} dest=$(${pkgs.fd}/bin/fd --hidden --ignore-vcs --base-directory "$dir" \ | ${pkgs.fzf}/bin/fzf --prompt "Open file ") - destPrime=$(${pkgs.coreutils}/bin/realpath --canonicalize-existing --logical "$dest") + destPrime=$(${pkgs.coreutils}/bin/realpath --canonicalize-existing --logical "$dir/$dest") if [ -d "$destPrime" ]; then [ "$dest" ] && cd "$destPrime";