diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-11-05 16:17:36 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-11-05 16:17:36 +0000 |
commit | 68690165d75dfa9f6b9b80ff223aedbd8bc88a7a (patch) | |
tree | fb0a87950b487a83414668380eba7fd92840a544 /nix-conf/home | |
parent | e38900538bd2abd3f2c087816b5db6228cb14161 (diff) | |
download | dotfiles-68690165d75dfa9f6b9b80ff223aedbd8bc88a7a.tar.gz |
Use programs.command-not-found
Diffstat (limited to 'nix-conf/home')
-rw-r--r-- | nix-conf/home/includes/common.nix | 6 | ||||
-rw-r--r-- | nix-conf/home/includes/zsh.nix | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/nix-conf/home/includes/common.nix b/nix-conf/home/includes/common.nix index 2f06409..79994bd 100644 --- a/nix-conf/home/includes/common.nix +++ b/nix-conf/home/includes/common.nix @@ -57,6 +57,10 @@ in ]; programs.gpg.enable = true; - programs.nix-index.enable = true; + programs.nix-index = { + enable = true; + enableZshIntegration = false; + enableBashIntegration = false; + }; } diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index a101ca0..854c82b 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -23,7 +23,7 @@ keys = [ "id_rsa" "id_ed25519" "C171251002C200F2" ]; # extraFlags = [ "--quiet" "--ignore-missing" ]; }; - programs.command-not-found.enable = false; + programs.command-not-found.enable = true; programs.zsh = { enable = true; enableCompletion = true; @@ -70,8 +70,6 @@ }; initExtra = '' - source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh - # Taken from prezto tmux plugin if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" && -z "$INSIDE_EMACS" && -z "$SSH_TTY" ]]; then tmux start-server |