News:

SMF - Just Installed!

Main Menu

Does not source bash_aliases on startup

Started by mahesh, Oct 02, 2023, 02:12 AM

Previous topic - Next topic

mahesh

Hi guys, I've created bash_aliases file in my home dir. Then I've added the following script into bash_rc, which was supposed to source the bash_aliases on startup of the system. Unfortunately this doesn't happen. Everytime I need to do source .bash_aliases manually. Is there a way to fix it?
This is the snippet from bash_rc:

    Code:
if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

Thank you for help