Skip to content

Instantly share code, notes, and snippets.

@aalvarado
Last active September 27, 2015 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aalvarado/1275716 to your computer and use it in GitHub Desktop.
Save aalvarado/1275716 to your computer and use it in GitHub Desktop.
.bash_profile
# 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
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)
}
# 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