Special Dot Files
.zshrc .zprofile .bash_profile
Last updated
.zshrc .zprofile .bash_profile
Last updated
I'm using Mac with z-shell.
cat ~/.zshrc
to see what you already have. Conda uses this one, and you can store your aliases and terminal functions in here. e.g alias ll = ls -la
This is also where you want to store source
commands to run .sh
files or .zsh
files.
~/.zprofile
to store commands you need to be ran at every terminal session start. e.g. you have a proxy to turn on or something like that.
I don't use ~/.bash_profile
anymore, it's for the older Mac shell.
Terminal functions, aliases, dot files etc. are whole topics on their own. There are some posts to illustrate the difference between the dot files, here's one for example