From c433b6bce07ac7b2c58571eb618e58336052a68a Mon Sep 17 00:00:00 2001 From: triethyl Date: Tue, 17 Mar 2026 14:25:09 -0400 Subject: home-manager: nushell - added cd alias to z and fixed qr, other fixes --- home-manager/features/cli/shells/nushell/default.nix | 10 ++++++++-- 1 file 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. -- cgit v1.2.3