From d978022d2ce0493ce1bf5d3d33b38371fc133108 Mon Sep 17 00:00:00 2001 From: notohh Date: Wed, 5 Apr 2023 15:43:48 -0400 Subject: [PATCH] feat: init zoxide --- home/nushell/config.nu | 1 - home/nushell/env.nu | 1 - home/zoxide/default.nix | 11 +++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 home/zoxide/default.nix diff --git a/home/nushell/config.nu b/home/nushell/config.nu index 8ef706c..d33d7e9 100755 --- a/home/nushell/config.nu +++ b/home/nushell/config.nu @@ -1,7 +1,6 @@ # Nushell Config File source ~/.cache/starship/init.nu -source ~/.zoxide.nu alias zj = zellij alias zjd = zellij --layout ../.config/zellij/snowflake.kdl diff --git a/home/nushell/env.nu b/home/nushell/env.nu index 9dc648b..f814424 100755 --- a/home/nushell/env.nu +++ b/home/nushell/env.nu @@ -60,7 +60,6 @@ let-env NU_PLUGIN_DIRS = [ mkdir ~/.cache/starship starship init nu | save -f ~/.cache/starship/init.nu -zoxide init nushell | save -f ~/.zoxide.nu # To add entries to PATH (on Windows you might use Path), you can use the following pattern: # let-env PATH = ($env.PATH | split row (char esep) | prepend '/some/path') diff --git a/home/zoxide/default.nix b/home/zoxide/default.nix new file mode 100644 index 0000000..d11eb9b --- /dev/null +++ b/home/zoxide/default.nix @@ -0,0 +1,11 @@ +{ + ... +}: { + programs.zoxide = { + enable = true; + enableNushellIntegration = true; + options = [ + "--cmd cdd" + ]; + }; +}