Skip to content

Instantly share code, notes, and snippets.

@alwc
Last active August 29, 2015 14:06
Show Gist options
  • Save alwc/d245e494665bde636ab8 to your computer and use it in GitHub Desktop.
Save alwc/d245e494665bde636ab8 to your computer and use it in GitHub Desktop.
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/FMD/.bin
source ~/.bin/git-completion.bash
source ~/.bin/git-prompt.sh
#==============================================================================
# BASH PROMPT LOOK
#==============================================================================
# Powerline
source ~/.vim/bundle/powerline/powerline/bindings/bash/powerline.sh
POWERLINE_COMMAND="$POWERLINE_COMMAND -c ext.shell.theme=default_leftonly"
#==============================================================================
# FMD - ALIASES
#==============================================================================
# ls alias for color-mode
alias ll='ls -FalhG'
alias vim='mvim -v'
alias vi='mvim -v'
# Bash Completion
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# GOLang
# Setting PATH for GOROOT
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
# Python
## pip/pip3 - virtualenvwrapper - START
export PIP_REQUIRE_VIRTUALENV=true
syspip(){
PIP_REQUIRE_VIRTUALENV="" pip "$@"
}
syspip3(){
PIP_REQUIRE_VIRTUALENV="" pip3 "$@"
}
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true
if [[ -r /usr/local/bin/virtualenvwrapper_lazy.sh ]]; then
source /usr/local/bin/virtualenvwrapper_lazy.sh
else
echo "WARNING: Can't find virtualenvwrapper_lazy.sh"
fi
## pip/pip3 - virtualenvwrapper - END
# rbenv
## Use Homebrew's directories rather than ~/.rbenv add to your profile
export RBENV_ROOT=/usr/local/var/rbenv
## Enable shims and autocompletion add to your profile
if which rbenv > /dev/null; then
eval "$(rbenv init -)";
fi
# PHP
export PATH=~/.composer/vendor/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment