diff options
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -166,8 +166,12 @@ zmodload -i zsh/complist zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} hosts="" -if [ -e $HOME/.ssh/known_hosts ]; then - hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*}) +for f in "$HOME/.ssh/known_hosts" "$HOME/.ssh/known_hosts2" "/etc/ssh/ssh_known_hosts"; do + if [ -e "$f" ]; then + hosts=($hosts ${${${${(f)"$(<"$f")"}:#[0-9]*}%%\ *}%%,*}) + fi +done +if [ -n "$hosts" ]; then zstyle ':completion:*:hosts' hosts $hosts fi @@ -190,6 +194,7 @@ if [ "$SYSTEM" = "Linux" ] ; then fi alias cp='cp -i' alias mv='mv -i' +alias l='ls -l' alias mmv='noglob mmv' |