]> git.alrj.org Git - zsh.d.git/commitdiff
Remove special treatment for hosts completion
authorAmand Tihon <amand.tihon@iba-group.com>
Wed, 22 Jan 2020 12:21:58 +0000 (13:21 +0100)
committerAmand Tihon <amand.tihon@iba-group.com>
Wed, 22 Jan 2020 12:21:58 +0000 (13:21 +0100)
S40_completion

index 4c2d9af2e678ab86d7ac7aa5db1669d06e09c8c1..ca636bf595fba59795c0cdcc90af9df051b8020d 100644 (file)
@@ -2,18 +2,4 @@
 
 autoload -U compinit
 
 
 autoload -U compinit
 
-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
-
-compdef _hosts cc_sync
-
 compinit
 compinit