Skip to content

Instantly share code, notes, and snippets.

@brianm
Created December 10, 2008 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianm/34408 to your computer and use it in GitHub Desktop.
Save brianm/34408 to your computer and use it in GitHub Desktop.
SSH_COMPLETE=( $(cut -f1 -d' ' ~/.ssh/known_hosts |\
tr ',' '\n' |\
sort -u |\
grep -e '[:alpha:]') )
complete -o default -W "${SSH_COMPLETE[*]}" ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment