Skip to content

Instantly share code, notes, and snippets.

@jorgebraz
Created June 3, 2012 14:09
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 jorgebraz/2863653 to your computer and use it in GitHub Desktop.
Save jorgebraz/2863653 to your computer and use it in GitHub Desktop.
ssh autocomplete /etc/hosts
complete -W "$(sed 's/;.*//;' /etc/hosts | awk ' /^[[:digit:]]/ {$1 = "";print tolower($0)}')" ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment