Skip to main content
replaced http://superuser.com/ with https://superuser.com/
Source Link

For an alias to work in ~/.profile the session needs to be a login shell. Bash, which is probably what you're using, is typically read from ~/.bash_profile.

There's a good explanation of the differences mentioned here:

http://superuser.com/questions/183870/difference-between-bashrc-and-bash-profilehttps://superuser.com/questions/183870/difference-between-bashrc-and-bash-profile

For an alias to work in ~/.profile the session needs to be a login shell. Bash, which is probably what you're using, is typically read from ~/.bash_profile.

There's a good explanation of the differences mentioned here:

http://superuser.com/questions/183870/difference-between-bashrc-and-bash-profile

For an alias to work in ~/.profile the session needs to be a login shell. Bash, which is probably what you're using, is typically read from ~/.bash_profile.

There's a good explanation of the differences mentioned here:

https://superuser.com/questions/183870/difference-between-bashrc-and-bash-profile

Source Link
l'L'l
  • 9.2k
  • 2
  • 29
  • 40

For an alias to work in ~/.profile the session needs to be a login shell. Bash, which is probably what you're using, is typically read from ~/.bash_profile.

There's a good explanation of the differences mentioned here:

http://superuser.com/questions/183870/difference-between-bashrc-and-bash-profile