Skip to content

Source .bashrc at login

By default, the .bashrc file will not be sourced, so you’d need to manually type source ~/.bashrc to get your aliases and whatnot. But you can put the following 3 lines in your .bash_profile to do that automatically at each login via SSH:

if [ -f ~/.bashrc ]; then
  . ~/.bashrc


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.