From 9c0fdd9071175ff583ef8a6da7b6a258fffc2815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Mon, 4 Jan 2016 14:59:27 +0100 Subject: [PATCH] added fixed completion for scp --- .zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 52440fc..9e61dae 100644 --- a/.zshrc +++ b/.zshrc @@ -93,8 +93,9 @@ 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:*:ssh:*' hosts ${${${(@M)${(f)"$(cat ~/.ssh/config)"}:#Host *}#Host }:#*[*?]*} -zstyle ':completion:*:slogin:*' hosts ${${${(@M)${(f)"$(cat ~/.ssh/config)"}:#Host *}#Host }:#*[*?]*} +zstyle ':completion:*:scp:*' hosts ${${${(@M)${(f)"$(cat ~/.ssh/config)"}:#Host *}#Host }:#*[*?]*} zstyle ':completion:*:ssh:*' users # disables users completion +zstyle ':completion:*:scp:*' users # disables users completion zstyle :compinstall filename "$HOME/.zshrc"