alias c='/usr/bin/ssh' export HLIST HLIST=`cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["` HLIST="${HLIST} $(cat ~/.ssh/config | grep Host | awk '{print $2}' | grep -v \*)" HLIST=$(echo ${HLIST} | sort | uniq) complete -W "${HLIST}" c