Skip to content

Conversation

@ShivamPoW
Copy link

I checked .bashrc and it loads .bash_aliases instead of .bash_profile. So, for me logging out and in didn't work.

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

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

So had to source in each session. Hence, added small script at the end of .bashrc. I think just renaming everywhere works but probably not for everyone.

@shannona
Copy link
Collaborator

Not a correct solution: bash_profile should load bashrc, not vice-versa.

bash_profile gets loaded on any login shell. Perhaps the issue is that it wasn't a login shell?

Filing an issue on whether .bashrc or bash_aliases should be used for better general usage.

@shannona shannona closed this Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants