Define assh function to connect with autossh
and .bashrc
when the remote does not have a RemoteCommand specified
This commit is contained in:
parent
843cd752db
commit
c6d6ca0e04
2 changed files with 16 additions and 2 deletions
3
.bashrc
3
.bashrc
|
@ -146,8 +146,7 @@ if ! shopt -oq posix; then
|
|||
fi
|
||||
|
||||
# Customizations
|
||||
|
||||
if [ -f ~/.profile ]; then
|
||||
if [ -f ~/.profile ] && [ -z "${SSH_CONNECTION}" ]; then
|
||||
. ~/.profile
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue