]> git.alrj.org Git - zsh.d.git/blobdiff - S40_completion
Add a wrapper for mc to stay in current directory upon exit
[zsh.d.git] / S40_completion
index a2b8eceafb9665f567c5008978013b892040150a..ca636bf595fba59795c0cdcc90af9df051b8020d 100644 (file)
@@ -1,16 +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
-
-compdef _hosts cc_sync
+autoload -U compinit
 
+compinit