diff options
| author | triethyl <triethylammonium@pm.me> | 2025-10-15 08:38:59 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-10-15 08:38:59 -0400 |
| commit | cc295c0d7e2c6ce80117322ea29f0f8219cd7a12 (patch) | |
| tree | e08f6fd2a86d1c78cc17bd0a1930a9f3c98ad14b /home-manager | |
| parent | ee5d1dd3136fadf45e13c76d7314c0ce316a5e0e (diff) | |
nushell: added fcd util
Diffstat (limited to 'home-manager')
| -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; |
