diff options
| -rw-r--r-- | home-manager/features/cli/shells/nushell/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/home-manager/features/cli/shells/nushell/default.nix b/home-manager/features/cli/shells/nushell/default.nix index 6cd4ec4..d977ada 100644 --- a/home-manager/features/cli/shells/nushell/default.nix +++ b/home-manager/features/cli/shells/nushell/default.nix @@ -9,7 +9,9 @@ in { options.features.cli.shells.nushell.enable = lib.mkEnableOption "nushell"; config = lib.mkIf cfg.enable { home.packages = with pkgs; [ + fd television + fzf gitprompt-rs ]; programs.nushell = { @@ -18,7 +20,7 @@ in { gstat ]; shellAliases = { - "nix-shell" = "nix-shell --command 'SHELL=nu nu'"; + "cd" = "z"; "ze" = "zellij"; "lg" = "lazygit"; "bk" = "cd $env.OLDPWD"; @@ -93,7 +95,11 @@ in { # Quickly run a nix package. def qr --wrapped [package: string ...arguments] { - nix run $"nixpkgs#($package)" -- ($arguments | str join " ") + if ($arguments == []) { + nix run $"nixpkgs#($package)" + } else { + nix run $"nixpkgs#($package)" -- ($arguments | str join " ") + } } # Quickly find and enter a directory. |
