about summary refs log tree commit diff stats
path: root/nix-conf
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2023-01-12 16:11:22 +0000
committerDavid Morgan <djm_uk@protonmail.com>2023-01-12 16:11:22 +0000
commit6942ab1663462d5be62ca9a7014966352f114982 (patch)
tree0aca4553d29b73a60d7ad7bf4c70ce73642fa8d4 /nix-conf
parente859cdc400065afcc1827522aa1f1f3536b6a5fc (diff)
downloaddotfiles-6942ab1663462d5be62ca9a7014966352f114982.tar.gz
Add zsh-nvm and per-directory-history
Diffstat (limited to 'nix-conf')
-rw-r--r--nix-conf/home/includes/zsh.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix
index 7a01868..e0190c7 100644
--- a/nix-conf/home/includes/zsh.nix
+++ b/nix-conf/home/includes/zsh.nix
@@ -87,6 +87,12 @@
       gloga = "git log --oneline --decorate --graph --all";
     };
 
+    localVariables = {
+      PER_DIRECTORY_HISTORY_TOGGLE = "^\\\\"; # ^\\ is ^#
+      HISTORY_START_WITH_GLOBAL=true;
+      NVM_AUTO_USE = true;
+      NVM_LAZY_LOAD = true;
+    };
     initExtraFirst = ''
       [[ $TERM == "tramp" ]] && unsetopt zle && PS1='$ ' && return
     '';
@@ -253,6 +259,26 @@
         };
         file = "fzf-git.sh";
       }
+      {
+        name = "per-directory-history";
+        src = fetchFromGitHub {
+          owner = "jimhester";
+          repo = "per-directory-history";
+          rev = "0687bbfd736da566472a6d67c2b45c501b73d405";
+          sha256 = "7Z0qaDhgopKt9BDKSqdziw9jsVgiLLafs30wPPbz+oo=";
+        };
+        file = "per-directory-history.zsh";
+      }
+      {
+        name = "zsh-nvm";
+        src = fetchFromGitHub {
+          owner = "lukechilds";
+          repo = "zsh-nvm";
+          rev = "23067bd9bb6eb6f4737a3ea90cb0cb5e85f61ba2";
+          sha256 = "Zwdi7bezMFKaIKYwsSftu3mJSFvadEWmY2hYnU1Kpu4=";
+        };
+        file = "zsh-nvm.plugin.zsh";
+      }
     ];
   };
 }