From cc295c0d7e2c6ce80117322ea29f0f8219cd7a12 Mon Sep 17 00:00:00 2001 From: triethyl Date: Wed, 15 Oct 2025 08:38:59 -0400 Subject: nushell: added fcd util --- home-manager/features/cli/shells/nushell/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3