Skip to content

Instantly share code, notes, and snippets.

@diije
Created November 9, 2016 16:26
Show Gist options
  • Select an option

  • Save diije/6440d092def9a9c0ba359be45c5f645a to your computer and use it in GitHub Desktop.

Select an option

Save diije/6440d092def9a9c0ba359be45c5f645a to your computer and use it in GitHub Desktop.
My custom .bash_profile
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
export PATH=/usr/local/bin:/usr/local/share/python:$PATH
# Setting PATH for Python 3.4
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
export PATH
# Using python3 as default
alias python='python3'
alias pip='pip3'
# I prefer vim
alias vi='vim'
alias date='gdate'
# Autocompletion when sudo
complete -cf sudo
export PATH="/usr/local/mysql/bin:/usr/local/Cellar:$PATH"
export HOMEBREW_GITHUB_API_TOKEN=b92b8f6f72722f42473297f300e4129166b6f01e
# Colorful terminal
export CLICOLOR=1
# Custom prompt with hour and colors
PS1='\[\e[0;37m\][\t] \[\e[0;31m\]\u@\h\[\e[0;37m\]:\[\e[1;32m\]\w\[\e[0;37m\]\$\[\e[0m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment