When a user logs in to Linux, it runs in the following order:
1 .bash_profile
2 .bashrc
.bash_profile
Write here if you want to run it only once at login.
.bashrc Write here when you want to run it every time you start the shell.
When setting an alias (shortcut command), describe it in .bashrc.
.bashrc
# example
--------------
Git Aliases
--------------
alias gaa='git add .'
alias gcm='git commit -m'
alias gl='git log'
alias gs='git status'
alias gpom='git push origin master'
alias gpfom='git push -f origin master'
Reference site About .bash_profile and .bashrc Really correct use of .bashrc and .bash_profile
that's all
Recommended Posts