From 050165b915dd54141f1e4d81dea8208032e5e6c6 Mon Sep 17 00:00:00 2001 From: John Hirbour Date: Sat, 10 Sep 2011 23:20:47 -0400 Subject: added stuff for ssh tab completion --- .bash_profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index 865207e..0b9282e 100755 --- a/.bash_profile +++ b/.bash_profile @@ -6,4 +6,8 @@ for file in bash_prompt exports aliases functions extra; do done # Case-insensitive globbing (used in pathname expansion) -shopt -s nocaseglob \ No newline at end of file +shopt -s nocaseglob + +# auto complete ssh host names (the crap between ` and ` just has to be a list... you could just make a list of hosts.... +complete -W "$(echo `grep ^Host ~/.ssh/config |sed -e 's/Host //g'| grep -v "*"`;)" ssh + -- cgit v1.2.3