Define assh function to connect with autossh and .bashrc when the remote does not have a RemoteCommand specified

This commit is contained in:
Daniel McKnight 2025-06-04 21:31:46 -07:00
parent 843cd752db
commit c6d6ca0e04
2 changed files with 16 additions and 2 deletions

View file

@ -146,8 +146,7 @@ if ! shopt -oq posix; then
fi
# Customizations
if [ -f ~/.profile ]; then
if [ -f ~/.profile ] && [ -z "${SSH_CONNECTION}" ]; then
. ~/.profile
fi