Image from https://github.com/jglovier
This directory holds useful dot file configurations.
Dot files are hidden on unix like systems (Unix
, Linux
and Darwin/Mac
).
Just copy&paste the relevant lines of the appropriate dotfile into your machine version.
There are two popular terminal programs:
There are several varieties of shell programs. Two popular ones are:
zsh
bash
They are configured using hidden dot files stored in the users home directory.
(Type echo $HOME
to see your home directory.)
zsh is now the default on MacOS Catalina onwards
.bashrc
and .bash_profile
If you use Terminal, then your default shell program is bash
.
It is recommended to use .bashrc
for configurations and .bash_profile
only loads .bashrc
.
You could:
.bashrc
file in your home directory
touch ~/.bashrc
~/.bashrc
from your favorite text editor~/.bash_profile
to ~/.bashrc
bash_profile
to your now empty ~/.bash_profile
~/.bash_profile
to load to ~/.bashrc
chmod 700 ~/.bash_profile
and chmod 700 ~/.bashrc
Now you can copy&paste configurations from this repository's .bashrc
to your .bashrc
.zshrc
Some users may prefer to use the z
shell that comes with the iTerm2 program.
The environment for this is configured with .zshrc
Just copy&paste configurations from this repository's .zshrc
to your .zshrc