about summary refs log tree commit diff stats
path: root/hm/soispha/conf/zsh/default.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-28 20:26:18 +0100
committerSoispha <soispha@vhack.eu>2024-02-28 20:26:18 +0100
commitc733f3326a34a57dfab4c17da659316fdb6eab6a (patch)
tree1f94d7c4ad524649dfe207a25c0c3781b2909476 /hm/soispha/conf/zsh/default.nix
parentchore(hm/soispha/conf/taskwarrior/projects): Update (diff)
downloadnixos-config-c733f3326a34a57dfab4c17da659316fdb6eab6a.zip
feat(hm): Add nix-index and associated command_not_found_handler
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/zsh/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/hm/soispha/conf/zsh/default.nix b/hm/soispha/conf/zsh/default.nix
index faff46c9..b43147e1 100644
--- a/hm/soispha/conf/zsh/default.nix
+++ b/hm/soispha/conf/zsh/default.nix
@@ -68,10 +68,12 @@
     initExtraFirst =
       builtins.readFile ./config/zsh-init.zsh
       # + builtins.readFile ./config/zsh-prompt.sh
+      + ''SHELL_LIBRARY_VERSION="2.1.1" source ${shell_library.rawLib.${system}}''
+      # NOTE: This must be before the insult, as we otherwise override the previous handler <2024-02-28>
+      + builtins.readFile ./config/command_not_found.sh
       + builtins.readFile ./config/command_not_found_insult.sh
       + builtins.readFile ./config/custom_cursor.zsh
-      + builtins.readFile "${pkgs.fzf}/share/fzf/key-bindings.zsh"
-      + ''SHELL_LIBRARY_VERSION="2.1.1" source ${shell_library.rawLib.${system}}'';
+      + builtins.readFile "${pkgs.fzf}/share/fzf/key-bindings.zsh";
 
     shellAliases = {
       ll = ". ll";