diff options
| -rw-r--r-- | home-manager/features/cli/shells/nushell/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/home-manager/features/cli/shells/nushell/default.nix b/home-manager/features/cli/shells/nushell/default.nix index 7561fb1..11e02ea 100644 --- a/home-manager/features/cli/shells/nushell/default.nix +++ b/home-manager/features/cli/shells/nushell/default.nix @@ -19,7 +19,6 @@ in { ]; shellAliases = { "nix-shell" = "nix-shell --command 'SHELL=nu nu'"; - "cd" = "z"; "ze" = "zellij"; "lg" = "lazygit"; "bk" = "cd $env.OLDPWD"; @@ -96,6 +95,11 @@ in { def qr --wrapped [package: string ...arguments] { nix run $"nixpkgs#($package)" -- ($arguments | str join " ") } + + # Quickly find and enter a directory. + def --env fcd [] { + ${lib.getExe pkgs.fd} -t d | ${lib.getExe pkgs.fzf} | if ($in != null) {cd $in} + } ''; }; programs.zoxide.enable = true; |
