Skip to content

Instantly share code, notes, and snippets.

@thommay
Created January 28, 2011 16:22
Show Gist options
  • Select an option

  • Save thommay/800485 to your computer and use it in GitHub Desktop.

Select an option

Save thommay/800485 to your computer and use it in GitHub Desktop.
zstyle -e ':completion:*:hosts' hosts 'reply=(
${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) \
/dev/null)"}%%[# ]*}//,/ })'
zstyle ':completion:*:(ssh|scp):*:users' ignored-patterns \
adm bin daemon halt lp named shutdown syn uucp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment