summaryrefslogtreecommitdiffstats
path: root/dotfiles/zshrc
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2021-06-07 12:21:44 +0200
committerMinijackson <minijackson@riseup.net>2021-06-07 12:21:44 +0200
commite64211656e82fd9318141c1d287f559e607478a0 (patch)
treeff8673c1998108520c7899b2a177c05ce6ba3471 /dotfiles/zshrc
parent2c6717b0a50c7edc1bbdc72b01738306db93c971 (diff)
downloadnixos-config-reborn-e64211656e82fd9318141c1d287f559e607478a0.tar.gz
nixos-config-reborn-e64211656e82fd9318141c1d287f559e607478a0.zip
zsh: fix sudo completion
Diffstat (limited to 'dotfiles/zshrc')
-rw-r--r--dotfiles/zshrc4
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"
22fi 22fi
23 23
24# Remove the command-path completion of sudo set by grml, since Nix has
25# non-standard PATHs
26zstyle -d ':completion:*:sudo:*' command-path
27
24# Change the style of VCS prompt info 28# Change the style of VCS prompt info
25zstyle ':vcs_info:*' check-for-changes true 29zstyle ':vcs_info:*' check-for-changes true
26zstyle ':vcs_info:*' stagedstr "s" 30zstyle ':vcs_info:*' stagedstr "s"