small refactr logo
At refactr we believe in the value of connection, the utility of agile processes, and the power of great ideas. We are creating the next generation of software for people who expect more from their web applications.
refactr
« Field tab order in Firefox in OS X | Make Gmail a (better) standalone app without Fluid or Safari »


SSH tab completion tip


MacOSXHints.com has a sweet little tip to get tab completion for ssh. Just enter the following line at the bottom of your .bash_profile script for tab completing goodness.

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

Perhaps the best part is that you can type ssh-[tab]-[tab] to quickly see all of the hosts that are in your known hosts file and then quickly pick out that IP or host name that you can never remember.

This entry was posted by Jesse O'Neill-Oine on Monday, March 24th, 2008 at 1:50 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Join the Discussion