Last active
December 19, 2015 19:09
-
-
Save gustavoguichard/6004529 to your computer and use it in GitHub Desktop.
MyBash
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
| export PATH="$HOME/.rbenv/bin:$PATH" | |
| eval "$(rbenv init -)" | |
| parse_git_branch() { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ →\ \1/' | |
| } | |
| # export PS1="\[\e[0;31m\][\u] \W\n$ " | |
| export PS1='\[\e[1;37m\]\W\[\e[1;36m\]$(parse_git_branch)\[\e[0;39m\]\n${debian_chroot:+($debian_chroot)}\[\033[00;36m\]⚡ ' | |
| export PROMPT_COMMAND='echo -ne "\033]0;${PWD}\007"' | |
| export GREP_OPTIONS="--color=auto" | |
| export GREP_COLOR="4;33" | |
| export CLICOLOR="auto" | |
| export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH | |
| export EDITOR='subl -w' | |
| # COMMANDS | |
| alias ls="ls -G" | |
| alias editBash="sudo subl ~/.bash_profile" | |
| alias hideDesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder" | |
| alias showDesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder" | |
| alias desk="cd ~/Desktop/" | |
| alias ..="cd ../" | |
| alias ...="cd ../../" | |
| alias server="open http://localhost:8000 && python -m SimpleHTTPServer" | |
| alias ~="cd ~/" | |
| alias clean="purge" | |
| alias on="foreman start" | |
| alias brake="bundle exec rake" | |
| alias hrake="heroku run rake" | |
| alias hrails="heroku run rails" | |
| alias ropen="open http://localhost:3000" | |
| alias be="bundle exec" | |
| alias iPhone="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator" | |
| alias migrate="bundle exec rake db:migrate db:test:prepare" | |
| # MAMP | |
| alias mamp="sudo /Applications/MAMP/bin/start.sh" | |
| alias mampend="sudo /Applications/MAMP/bin/stop.sh" | |
| # NODE | |
| alias snpm="sudo npm" | |
| # GIT | |
| alias gc="git commit -am" | |
| alias gs="git status" | |
| alias ga="git add ." | |
| alias gb="git branch" | |
| alias gp="git push" | |
| alias gd="git diff" | |
| alias gpu="git pull" | |
| alias gpp="git push production" | |
| alias gfp="git ftp push" | |
| alias gmaster="git checkout master" | |
| alias gck="git checkout" | |
| alias undo-commit="git reset --soft HEAD^" | |
| alias deploy="git push heroku master" | |
| alias apc="RAILS_ENV=production bundle exec rake assets:precompile" | |
| # PROJECTS | |
| alias sites="cd ~/Sites/" | |
| alias engage="cd ~/Sites/engage/" | |
| alias mineo="cd ~/Sites/engage/mineo/" | |
| alias fdi="cd ~/Sites/engage/festivaldeideias/" | |
| alias lbm="cd ~/Sites/engage/littlebigmoney/" | |
| alias rlf="cd ~/Sites/rlf_rails/" | |
| alias neigh="cd ~/Sites/neighborly/" | |
| alias gfs="cd ~/Sites/goflow_site/" | |
| alias qrs="cd ~/Sites/qrshirts/" | |
| alias mbr="cd ~/Sites/materiabrasil/" | |
| alias ggg="cd ~/Sites/gustavoguichard/" | |
| alias gisele="cd ~/Sites/giseledemenezes/" | |
| # KLUGE PROJECTS | |
| alias kluge="cd ~/Sites/kluge" | |
| alias lmg="cd ~/Sites/kluge/lmg/site/wp-content/themes/lmg" | |
| alias christ="cd ~/Sites/kluge/dev-christcathedral/wp-content/themes/christcathedral" | |
| PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH" | |
| build_zip() { | |
| cp -r ./ ../$1; zip -r ../$1.zip ../$1; rm -rf ../$1/; mv ../$1.zip ~/Desktop/$1.zip; | |
| } | |
| chrome() { | |
| /usr/bin/open -a "/Applications/Google Chrome.app" $1 | |
| } | |
| google() { | |
| open /Applications/Google\ Chrome.app/ "http://www.google.com/search?q= $1" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment