From 63bae6ae0b10f6a0baf9cb4447daea49adf47a95 Mon Sep 17 00:00:00 2001 From: arcan1s Date: Wed, 26 Nov 2014 10:49:21 +0300 Subject: [PATCH] update zshrcs. Thanks to @technnocoreai for the idea TODO: split common components to several files --- zshrc | 2 ++ zshrc_foreing_server | 2 ++ zshrc_server | 2 ++ zshrc_t440 | 2 ++ 4 files changed, 8 insertions(+) diff --git a/zshrc b/zshrc index 87da6c9..85f6761 100644 --- a/zshrc +++ b/zshrc @@ -66,6 +66,8 @@ bashcompinit # first symbol autocomplete zstyle ':completion:*' insert-tab false zstyle ':completion:*' max-errors 2 +# correct host complete +[[ -f ~/.ssh/config ]] && zstyle ':completion:*' hosts $(awk '/^Host .*$/ { print $2 }' ~/.ssh/config) # prompt autoload -U promptinit diff --git a/zshrc_foreing_server b/zshrc_foreing_server index fd42f1c..f601675 100644 --- a/zshrc_foreing_server +++ b/zshrc_foreing_server @@ -21,6 +21,8 @@ bashcompinit # first symbol autocomplete zstyle ':completion:*' insert-tab false zstyle ':completion:*' max-errors 2 +# correct host complete +[[ -f ~/.ssh/config ]] && zstyle ':completion:*' hosts $(awk '/^Host .*$/ { print $2 }' ~/.ssh/config) # prompt autoload -U promptinit diff --git a/zshrc_server b/zshrc_server index 04e5c73..58deca5 100644 --- a/zshrc_server +++ b/zshrc_server @@ -66,6 +66,8 @@ bashcompinit # first symbol autocomplete zstyle ':completion:*' insert-tab false zstyle ':completion:*' max-errors 2 +# correct host complete +[[ -f ~/.ssh/config ]] && zstyle ':completion:*' hosts $(awk '/^Host .*$/ { print $2 }' ~/.ssh/config) # prompt autoload -U promptinit diff --git a/zshrc_t440 b/zshrc_t440 index 52e510d..39c914d 100644 --- a/zshrc_t440 +++ b/zshrc_t440 @@ -66,6 +66,8 @@ bashcompinit # first symbol autocomplete zstyle ':completion:*' insert-tab false zstyle ':completion:*' max-errors 2 +# correct host complete +[[ -f ~/.ssh/config ]] && zstyle ':completion:*' hosts $(awk '/^Host .*$/ { print $2 }' ~/.ssh/config) # prompt autoload -U promptinit