4 ms·
complete -W "$(awk '/^#|^ $/{next}{print tolower($2)}' /etc/hosts) $(awk '/ ^#|^ $/{next}{gsub(/,/," ",$1); print $1}' $HOME/.ssh/known_hosts)" ssh telnet ping
by allan_ 15y ago
complete -W "$(awk '/^#|^ $/{next}{print tolower($2)}' /etc/hosts) $(awk '/
^#|^ $/{next}{gsub(/,/," ",$1); print $1}' $HOME/.ssh/known_hosts)" ssh telnet
ping