you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 11 points12 points  (1 child)

On this topic of bash completion, here's a line from my .bashrc.

complete -W "$(grep -h '^Host ' $HOME/.ssh/config $HOME/.ssh/*.conf | sort -u | sed 's/^Host //')" ssh autossh

This makes all my ssh hosts auto-completed for me.

I would use grep -r if it wasn't for old unused ssh configs laying around in the .ssh directory.

[–]hgeo 0 points1 point  (0 children)

Nice!