To make an alias for the Terminal in OS X, you can either put the aliases in .bash_profile or .bashrc. What is the difference between the two and why would I choose to put aliases in one and not the other?
|
|
|||||||||
|
|
When you login (type username and password) via console, either sitting at the machine, or remotely via ssh: But, if you’ve already logged into your machine and open a new terminal window (xterm) then On OS X, Terminal by default runs a login shell every time, so this is a little different to most other systems, but you can configure that in the preferences. |
||||
|
X11 will look at your However, if you add the following to your
|
|||||||||||||||||
|
|
For macOS, the code to put into
This is more specific for Mac terminal user. |
||||
|
|