Last active
October 25, 2015 16:57
-
-
Save fidiego/e8699bcbc27586331dc8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GIT AWARE BASH | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source "${GITAWAREPROMPT}/main.sh" | |
# PATHS | |
export PATH=$PATH:~/bin/ | |
export PATH=$PATH:/usr/local/bin/ | |
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin/ | |
export PATH=$PATH:/usr/local/Cellar/graphviz/2.38.0/bin/ | |
# BASH PROMPT | |
green=$(tput setaf 2) | |
blue=$(tput setaf 4) | |
purp=$(tput setaf 5) | |
cyan=$(tput setaf 6) | |
yellow=$(tput setaf 3) | |
reset=$(tput sgr0) | |
export PS1='\d :: \t $git_branch\[$txtred\]$git_dirty\[$reset\] | |
\[$green\]\u\[$reset\]@\[$purp\]\h\[$reset\] \[$yellow\]\w\[$reset\] | |
\[$cyan\]>> \[$reset\]' | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
export CLICOLOR=1 | |
# ALIASES | |
alias ls='ls -A ' | |
alias lt='ls -Alth' | |
alias ltr='ls -Altrh' | |
alias ll='ls -Al ' | |
alias c='clear ' | |
alias cl='clear && ls ' | |
alias cll='clear && ls -lA' | |
alias cla='clear && ls -A' | |
alias ..='cd .. ' | |
alias ...='cd ../.. ' | |
alias cpwd='pwd | pbcopy ' | |
# GIT | |
alias gtst='git status ' | |
alias gtdf='git diff ' | |
alias gaa='git add -all ' | |
# PYTHON | |
alias wenv='source /usr/local/bin/virtualenvwrapper.sh' | |
alias ipy='ipython ' | |
# DJANGO | |
alias djrun='python manage.py runserver ' | |
alias djrunssl='python manage.py runsslserver ' | |
alias djshell='python manage.py shell ' | |
alias djdbshell='python manage.py dbshell ' | |
alias djsync='python manage.py syncdb ' | |
alias djmakemig='python manage.py makemigrations ' | |
alias djmig='python manage.py migrate ' | |
alias djcollect='./manage.py collectstatic --noinput' | |
# Submlime Text | |
export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin/:$PATH" | |
# OS X | |
alias killpg84='sudo -u postgres /Library/PostgreSQL/8.4/bin/pg_ctl stop -D /Library/PostgreSQL/8.4/data/' | |
# PROJECT ALIASES | |
alias duck='cd ~/code/duckling/duckling/ && workon duckling ' | |
alias tlap='cd ~/code/teachley/tlap/ && workon tlap' | |
alias cube='cd ~/code/raices/cada-uno/backend && workon cadauno' | |
alias doer2='cd ~/code/doer/doer_2/doer && workon doer2' | |
wenv | |
### Added by the Heroku Toolbelt | |
export PATH="/usr/local/heroku/bin:$PATH" | |
### NPM | |
export PATH="$HOME/.node/bin:$PATH" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment