Skip to content

Instantly share code, notes, and snippets.

@scriptingosx
Created April 25, 2017 08:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scriptingosx/3c673a183f6aaddebbfe4e6c0a03627a to your computer and use it in GitHub Desktop.
Save scriptingosx/3c673a183f6aaddebbfe4e6c0a03627a to your computer and use it in GitHub Desktop.
Sample Environment Variables in bash_profile/bashrc. (See http://scriptingosx.com/2017/04/on-bash-environment-variables/ for details)
# ENVIRONMENT VARIABLES
# add my ~/bin dir to path
PATH=${PATH}:~/bin
export PATH
# simple prompt
# default macOS prompt is: \h:\W \u\$
export PS1="\W \$ "
# enable Terminal color
export CLICOLOR=1
# set EDITOR to bbedit
if [[ -e "/usr/local/bin/bbedit" ]]; then
export EDITOR="bbedit -w --resume"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment