43
13
In ~/.bash_profile
I have :
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
In ~/.bashrc
I have some aliases
When I load a new iTerm window, my aliases do not work. If I source ~/.bashrc
they work. If I source ~.bash_profile
they work.
Isn't at least one of these supposed to be sourced automatically?
What might be causing it not to work properly?
Thank you. Note that
ls --color
gave meillegal option
in bothbash
andzsh
on OSX 10.10, but not on Linux -- I'll look into it. Cheers. – Bradley Flood – 2015-07-10T02:18:40.873I don't have a Mac to test on but I think this has to do with the ls implementation on OS X, I don't think it has the - -color argument. If I remember I'll look it up. – projectdp – 2015-07-10T02:25:08.873
1"... zsh has its own startup configuration files." this is what he probably asks for huh? just say "dude, it is ~/.zshrc". – eyurdakul – 2018-10-15T12:32:36.607
+1 great tips in the answer for macOS Catalina now using zsh officially. Thank you. – therobyouknow – 2019-11-13T13:59:23.987