I have my .ssh/config with a lot of connection names. What would be better than to have auto complete with ssh <TAB> <TAB>
Added this line to my bash profile and I was good to go.
There is a lot that human can do, for everything else there is [shell] script :)
Added this line to my bash profile and I was good to go.
complete -W "$(awk '/^\s*Host\s*/ { sub(/^\s*Host /, ""); print; }' ~/.ssh/config)" sshman complete
There is a lot that human can do, for everything else there is [shell] script :)
2 comments:
hahahaha nice .. kuch bhi karte rahte hoo :D
Neat trick... Shamelessly copying :)
Post a Comment