Created
July 29, 2013 19:19
-
-
Save zimkies/6106953 to your computer and use it in GitHub Desktop.
My .profile file
This file contains 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
# Default open with vim | |
set -o vi | |
# Include npm bins in path | |
export PATH=$PATH:/usr/local/share/npm/bin:/usr/local/sbin | |
PATH=/usr/local/bin:$PATH | |
# Add folder color | |
export CLICOLOR=1 | |
# Sublime stuff | |
defaults write com.sublimetext.2 ApplePressAndHoldEnabled -bool false | |
# Git branch Highlighting | |
export PS1="\[\033[38m\]\u@officepro\[\033[01;34m\] \w \[\033[31m\]\`ruby -e \"print (%x{git branch 2> /dev/null}.split(%r{\n}).grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[37m\]$\[\033[00m\] " | |
#Git autocomplete | |
if [ -f `brew --prefix`/etc/bash_completion.d/git-completion.bash ]; then | |
. `brew --prefix`/etc/bash_completion.d/git-completion.bash | |
fi | |
# Allow autocomplete for rbenv | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
# Aliases | |
alias barterenv="source $HOME/Virtualenv/barterenv/bin/activate" | |
alias barter="cd $HOME/Workspace/barter/" | |
alias be="barterenv && barter" | |
alias bmedia="python manage.py coffee && python manage.py lessc" | |
alias syncdb="python manage.py syncdb --migrate" | |
alias upload="git push ssh://[email protected]:29418/barter HEAD:refs/for/master" | |
alias gcaa="git commit -a --amend" | |
alias gpr="git pull --rebase origin master" | |
alias rmtws="find . -type f \( -iname '*.py' -or -iname '*.html' -or -iname '*.js' -or -iname '*.coffee' \) -print0 | xargs -0 sed -i -e 's/\s\s*$//g'" | |
alias bmw="bmedia" | |
alias pipupgrade="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U" | |
# Aliases for Tplus1 | |
alias tplus1env="source $HOME/Virtualenv/tplus1env/bin/activate" | |
alias tplus1="cd $HOME/Workspace/tplus1/" | |
alias tpe="tplus1env && tplus1" | |
alias tpup="git push ssh://[email protected]:29418/tplus1 HEAD:refs/for/master" | |
# Aliases for squidtv | |
alias squidenv="source $HOME/Virtualenv/squidenv/bin/activate" | |
alias squid="cd $HOME/Workspace/squidward-gtv" | |
alias sqe="squidenv && squid" | |
# Aliases for railstutorial | |
alias rt="cd $HOME/Workspace/rails_projects/sample_app" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment