Cobra Forum

Linux => New to Ubuntu => Topic started by: mahesh on Oct 02, 2023, 02:12 AM

Title: Does not source bash_aliases on startup
Post by: mahesh on Oct 02, 2023, 02:12 AM
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