completion for sudo adds superuser paths
This commit is contained in:
parent
3e208ca1fe
commit
df445acd37
2
.zshrc
2
.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:*:*' command 'ps xf -U $USER -o pid,%cpu,cmd'
|
||||||
zstyle ':completion::*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;32'
|
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/') }
|
list-ssh-hosts() { [[ -f $HOME/.ssh/config ]] && print -n $(cat $HOME/.ssh/config | sed '/^Host /!d;s/Host *\([^ \#]\+\)/\1/') }
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user