Bash profile

Aug 19th, 2018

My current .bash_profile for the Mac.

# git completion and git prompt, requires Xcode to be installed
# see comments in the files for more details and the website at
source /Applications/
source /Applications/

# git bash prompt
# see comments in the above bash and shell scripts for more options
export GIT_PS1_SHOWUPSTREAM="auto"
export PS1='\[\e[36m\]\W\[\e[m\]\[\033[32m\]$(__git_ps1 " (%s)")\[\033[00m\] \[\e[33m\]\$\[\e[m\] '

# format output of list command, the gls commands require: brew install coreutils
alias la="gls -Ahl --color --group-directories-first"
alias ll="gls -hl --color --group-directories-first"

# move up one directory
alias ..="cd .."

# call ls command after changing to another directory 
cd() { builtin cd "$@" && la; }

# added by Miniconda3 installer
export PATH="/Users/gavin/miniconda3/bin:$PATH"

# needed for sublime text symlink to subl
export PATH="$PATH":~/bin