Skip to content

Instantly share code, notes, and snippets.

@machuiwen
Last active April 25, 2019 01:10
Show Gist options
  • Select an option

  • Save machuiwen/c75f1b493ed39323e18c to your computer and use it in GitHub Desktop.

Select an option

Save machuiwen/c75f1b493ed39323e18c to your computer and use it in GitHub Desktop.
My bash profile
alias zsh="chsh -s /usr/local/bin/zsh"
alias deleteTrash="rm -rf ~/.Trash/*"
# export TESSDATA_PREFIX="/usr/local/share/"
# export PATH=/Developer/NVIDIA/CUDA-5.0/bin:$PATH
export PATH=/usr/local/bin:$PATH
export PYTHONPATH=/usr/local/lib/python2.7/site-packages/:$PYTHONPATH
export PYTHONPATH=/Users/WilliamMa/Desktop/:$PYTHONPATH
export PATH=$PATH:/Applications/Sublime\ Text.app/Contents/SharedSupport/bin
# Enable tab completion
source ~/git-completion.bash
# colors!
green="\[\033[0;32m\]"
blue="\[\033[0;34m\]"
purple="\[\033[0;35m\]"
reset="\[\033[0m\]"
# Change command prompt
source ~/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
# '\u' adds the name of the current user to the prompt
# '\$(__git_ps1)' adds git-related stuff
# '\W' adds the name of the current directory
export PS1="$purple\u$green\$(__git_ps1)$blue \W $ $reset"
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment