X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=blobdiff_plain;f=S40_completion;h=ca636bf595fba59795c0cdcc90af9df051b8020d;hp=222bc7f666add876ebee01f6eef8a8d6a007dda8;hb=HEAD;hpb=24e698a0e46b50c12b190da467bf5d7fa982e823 diff --git a/S40_completion b/S40_completion index 222bc7f..ca636bf 100644 --- a/S40_completion +++ b/S40_completion @@ -1,14 +1,5 @@ #! /usr/bin/zsh -hosts=($( ( \ - ( [ -r ~/.ssh/config ] && awk '/^host +[a-z]/ { print $2 }' ~/.ssh/config) ; \ - ( [ -r ~/.ssh/known_hosts ] && awk '{print $1}' ~/.ssh/known_hosts | tr , '\n') \ -) | sort -u)) - -zstyle ':completion:*:hosts' hosts $hosts -zstyle ':completion:*:(ssh|scp|sftp):*' hosts $hosts -zstyle ':completion:*:hosts' list-colors '=(#b)(*)(.lln.iba)=01;30=01;31' '=[^.]#=01;31' - -users=(atihon ccadmin tcsadmin tcs clinical root) -zstyle ':completion:*' users $users +autoload -U compinit +compinit