Skip to content

Instantly share code, notes, and snippets.

@mbaltrusitis
Created May 21, 2015 04:15
Show Gist options
  • Save mbaltrusitis/44ac614a7037e17ce9a3 to your computer and use it in GitHub Desktop.
Save mbaltrusitis/44ac614a7037e17ce9a3 to your computer and use it in GitHub Desktop.
Basic Mac OS X .bash_profile
if [ $(id -u) -eq 0 ];
then # you are root, make the prompt red
PS1="┌─[\e[01;34m\u @ \h\e[00m]---[\e[01;34m$(pwd)\e[00m]\n└─>\e[01;31m#\e[00m "
else
PS1="┌─[\e[0;31m\u @ \h\e[00m]$\n└─>"
fi
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# Settings via http://hackercodex.com/guide/mac-osx-mavericks-10.9-configuration/
# Set architecture flags
export ARCHFLAGS="-arch x86_64"
# Ensure user-installed binaries take precedence
export PATH=/usr/local/bin:$PATH
# Load .bashrc if it exists
test -f ~/.bashrc && source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment