Skip to content

Instantly share code, notes, and snippets.

@LuanP
Created February 11, 2019 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuanP/266a8326603e086794a7f0e220394dea to your computer and use it in GitHub Desktop.
Save LuanP/266a8326603e086794a7f0e220394dea to your computer and use it in GitHub Desktop.
eval $(/usr/libexec/path_helper -s)
# bash
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
source $(brew --prefix)/etc/bash_completion
# git
GIT_PS1_SHOWDIRTYSTATE=true
PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w $(__git_ps1 "\[\033[31m\](%s)")\[\033[00m\]\$ '
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export PATH=$PATH:/Users/$(whoami)/.nvm/*/bin
# java
export JAVA_HOME=$(/usr/libexec/java_home)
# android
export ANDROID_HOME=/Users/$(whoami)/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
export PATH=/usr/local/bin:$PATH
# vim
alias vi=/usr/local/bin/vim
# virtualenvwrapper
export VIRTUALENVWRAPPER_PYTHON=$(which python3)
export VIRTUALENV_PYTHON=$(which python3)
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source /usr/local/bin/virtualenvwrapper.sh
# go
export GOPATH=$(go env GOPATH)
export PATH=$PATH:$(go env GOPATH)/bin
export PATH=/usr/local/opt/openssl/bin:$PATH
alias python='python3'
alias pip='pip3'
# flutter
export PATH=$PATH:$HOME/dev/flutter/bin
export FLUTTER_ROOT=/dev/flutter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment