From e64211656e82fd9318141c1d287f559e607478a0 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 7 Jun 2021 12:21:44 +0200 Subject: zsh: fix sudo completion --- dotfiles/zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 1263eeb..56439a2 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -21,6 +21,10 @@ else zstyle ':prompt:grml:left:items:host' post "%f" fi +# Remove the command-path completion of sudo set by grml, since Nix has +# non-standard PATHs +zstyle -d ':completion:*:sudo:*' command-path + # Change the style of VCS prompt info zstyle ':vcs_info:*' check-for-changes true zstyle ':vcs_info:*' stagedstr "s" -- cgit v1.2.3