diff options
author | Minijackson <minijackson@riseup.net> | 2021-06-07 12:21:44 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2021-06-07 12:21:44 +0200 |
commit | e64211656e82fd9318141c1d287f559e607478a0 (patch) | |
tree | ff8673c1998108520c7899b2a177c05ce6ba3471 | |
parent | 2c6717b0a50c7edc1bbdc72b01738306db93c971 (diff) | |
download | nixos-config-reborn-e64211656e82fd9318141c1d287f559e607478a0.tar.gz nixos-config-reborn-e64211656e82fd9318141c1d287f559e607478a0.zip |
zsh: fix sudo completion
-rw-r--r-- | dotfiles/zshrc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 1263eeb..56439a2 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc | |||
@@ -21,6 +21,10 @@ else | |||
21 | zstyle ':prompt:grml:left:items:host' post "%f" | 21 | zstyle ':prompt:grml:left:items:host' post "%f" |
22 | fi | 22 | fi |
23 | 23 | ||
24 | # Remove the command-path completion of sudo set by grml, since Nix has | ||
25 | # non-standard PATHs | ||
26 | zstyle -d ':completion:*:sudo:*' command-path | ||
27 | |||
24 | # Change the style of VCS prompt info | 28 | # Change the style of VCS prompt info |
25 | zstyle ':vcs_info:*' check-for-changes true | 29 | zstyle ':vcs_info:*' check-for-changes true |
26 | zstyle ':vcs_info:*' stagedstr "s" | 30 | zstyle ':vcs_info:*' stagedstr "s" |