This post provides some simple settings for a bash_profile (OSX) or bashrc (Linux) file.

Shortcut to my bash_profile file. Save as ~/.bash_profile.

Shortcut to a longer bash_profile (more comments). Save as ~/.bash_profile.

Shortcut to a minimal bash_profile. Save as ~/.bash_profile.

A bash_profile

Here is an example of a bash_profile file:

 
#tmux path: 
export PATH=/Users/dean/build/tmux-2.1:$PATH

#local bin path: 
export PATH=/usr/local/bin:$PATH

#LaTeX path: 
export PATH=/usr/local/texlive/2016/bin/x86_64-darwin:$PATH

#gitlatex path: 
export PATH=/Users/dean/build/gitlatexdiff:$PATH

#prompt path
export PATH=/Users/dean/build/prompt:$PATH

#need this for R
export LANG=en_US.UTF-8

#need this line - without it Python's matplotlib dies
export LC_ALL=en_US.UTF-8


#prompt colours
export PS1='\[\e[1;38;5;010m\]\u \w\[\e[0;38;5;45m\] \$\[\e[0m\] '

#ls colours
export CLICOLOR=1
export LSCOLORS=GxBxhxFxhxhxhxhxhxGxGx