Solution: bash alias - alias ssh="( ssh-add -l > /dev/null || ssh-add ) && ssh"
Normally one would put this in their ~/.bash_profile. However with Ubuntu 11.10, at least with my install,~/.bash_profile is not included. The file to add this line to is:
~/.bash_aliases
1
|
|
More Info: Ubuntu does state if ~/.bash_profile does exists, then ~/.profile will not be read, so I am using what has been setup to work by default.
1 2 3 4 5 6 7 8 9 10 11 12 |
|
~/.profile is set to include ~/.bash_rc which is set (at least on my system) to include ~/.bash_aliases
1 2 3 4 5 6 |
|