summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2026-03-17 14:25:09 -0400
committertriethyl <triethylammonium@pm.me>2026-03-17 14:25:09 -0400
commitc433b6bce07ac7b2c58571eb618e58336052a68a (patch)
treedd0435d126050c5cb72c8bc8797b03cf589d6ef3
parentc3871b1f1abe433546086ac6512c47df39e46a69 (diff)
home-manager: nushell - added cd alias to z and fixed qr, other fixes
-rw-r--r--home-manager/features/cli/shells/nushell/default.nix10
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.