I added export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx to my .bash_profile, saved the file, then in terminal ran source .bash_profile and was able to see colors. However, upon closing the terminal and opening again, I saw that there were no colors even when the my .bash_profile is still the same.
EDIT: Using Terminal.app and bash
.bash_profilefrom within.bashrc? Also, according to that documentation, every new terminal window sources.bash_profileso shouldn't my situation be working? – nukenine Aug 04 '17 at 13:17.bash_profileI guess. It's intended for trivial (probably not the right word) user preference/functionality modifications and could cause problems if it's sourced every time bash is called. For example you may want to create the following aliasalias du="du -kh"which if put into the .bashrc file could cause some scripts to malfunction. – jesse_b Aug 04 '17 at 13:23.bash_profilebut I'm guessing you are using something else. – jesse_b Aug 04 '17 at 13:25.bashrcfrom.bash_profile. See https://unix.stackexchange.com/questions/192521/loading-profile-from-bash-profile-or-not-using-bash-profile-at-all/192550#192550 – Gilles 'SO- stop being evil' Aug 05 '17 at 23:24source ~/.bashrcto mybash_profilebut still no changes (exitedTerminaland re-opened). I also triedif [ -s ~/.bashrc ]; then source ~/.bashrc; fito no luck. – nukenine Aug 07 '17 at 12:19~/.bash_profileread at all? It is in the default configuration on macOS; most other configurations read~/.bashrcwhen opening a terminal. Addset -xat the top of the file to make it print a trace of all the commands it runs, check that this appears on your terminal. – Gilles 'SO- stop being evil' Aug 07 '17 at 13:43~/.bash_profileis read? – nukenine Aug 07 '17 at 16:46.bash_profile:echo "HEY! My bash profile is being read!". You should see something like this at login:Last login: Mon Aug 7 10:50:50 on ttys000 You have mail. HEY! My bash profile is being read! joyentmac2252:~ jessebutryn$– jesse_b Aug 07 '17 at 16:51++ export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx ++ LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx`
– nukenine Aug 07 '17 at 17:12