From df445acd37a10fb90e1dd00c16991b5371385b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Tue, 5 Apr 2016 18:36:36 +0200 Subject: [PATCH] completion for sudo adds superuser paths --- .zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zshrc b/.zshrc index aa0d31a..456b157 100644 --- a/.zshrc +++ b/.zshrc @@ -95,6 +95,8 @@ zstyle ':completion:*' squeeze-slashes true zstyle ':completion::*:kill:*:*' command 'ps xf -U $USER -o pid,%cpu,cmd' zstyle ':completion::*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;32' +# sudo completion +zstyle ':completion:*:sudo:*' command-path append /sbin /usr/sbin list-ssh-hosts() { [[ -f $HOME/.ssh/config ]] && print -n $(cat $HOME/.ssh/config | sed '/^Host /!d;s/Host *\([^ \#]\+\)/\1/') }