Hacker News new | ask | show | jobs
by roadst4r 2716 days ago
add autocomplete for hosts found in known_hosts file

    complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" s