Last active
September 27, 2015 13:17
-
-
Save aalvarado/1275716 to your computer and use it in GitHub Desktop.
.bash_profile
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
# Probaby windows with msys (old times) | |
alias ls='ls -A --color=yes' | |
alias dir='ls -A --color=yes' | |
alias vi='vim' | |
alias gb='git branch' | |
alias gba='git branch -a' | |
alias gc='git commit -v' | |
alias gfu='git fetch upstream master:upstream' | |
alias gf='git fetch origin master:remote-master' | |
alias gp='git push' | |
alias gst='git status' | |
alias gdrm='git diff remote-master' | |
alias gd='git diff' | |
alias gco='git checkout' | |
alias unstage='git reset HEAD' | |
export TERM=msys |
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
alias vi='gvim' | |
alias gst='git status' | |
alias gp='git push' | |
alias gcm='git commit -m' | |
alias ack='ack-grep' | |
alias unstage='git reset HEAD' | |
alias gd='git diff' | |
alias gl=" git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias gb='git branch' | |
alias gpu='git push -u origin $(current_git_branch)' | |
alias last_migration='ls db/migrate/* | tail -n1 | xargs $EDITOR -g' | |
alias ga='git add ' | |
alias ga.='git add .' | |
alias gdc='git diff --cached' | |
alias safi='sudo apt-fast install' | |
alias safu='sudo apt-fast update' | |
alias safuu='sudo apt-fast update && sudo apt-fast upgrade' | |
alias saf='sudo apt-fast' | |
alias acs='apt-cache search' | |
alias pr='hub pull-request -o' | |
alias c='clipit' | |
alias p='clipit -c' | |
alias ..='cd ..' | |
alias bd='. bd -s' | |
alias nginx='sudo /opt/nginx/sbin/nginx' | |
alias be='bundle exec' | |
alias grph='git rev-parse HEAD' | |
PROMPT_COMMAND="$PROMPT_COMMAND;history -a" | |
source ~/.nvm/nvm.sh | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
export PATH="./bin:$PATH" | |
npm config set prefix ~/.npm | |
export PATH="$HOME/.npm/bin:$PATH" | |
#export RUBY_GC_MALLOC_LIMIT=60000000 | |
#export RUBY_FREE_MIN=200000 | |
source ~/Applications/bd/bash_completion.d/bd | |
export PAGER=less | |
#export LESS="-R -iMSx2 -FX" #Makes postgresql better but general Less worse :D | |
function cdg { | |
cd $(bundle show --paths | ack $1) | |
} |
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
# osx | |
alias vi='mvim' | |
alias gst='git status' | |
alias gp='git push' | |
alias gcm='git commit -m' | |
alias unstage='git reset HEAD' | |
alias gd='git diff' | |
alias gl=" git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias gb='git branch' | |
alias gpu='git push -u origin $(current_git_branch)' | |
alias last_migration='ls db/migrate/* | tail -n1 | xargs $EDITOR -g' | |
alias ga='git add ' | |
alias ga.='git add .' | |
alias gdc='git diff --cached' | |
alias pr='hub pull-request -o' | |
alias c='clipit' | |
alias p='clipit -c' | |
alias ..='cd ..' | |
alias bd='. bd -s' | |
alias nginx='sudo /opt/nginx/sbin/nginx' | |
alias be='bundle exec' | |
alias grph='git rev-parse HEAD' | |
function cdg { | |
cd $(bundle show --paths | ack $1) | |
} | |
PROMPT_COMMAND="$PROMPT_COMMAND;history -a" | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
source ~/projects/others/bd/bash_completion.d/bd | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment