first pass at adding aliases for common commands

This commit is contained in:
2013-11-05 08:45:07 -06:00
parent 64f3a0a5e2
commit a6e1ddc471
2 changed files with 25 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
"$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
PATH=/usr/local/bin:~/bin:/usr/local/share/npm/bin:$PATH PATH=/usr/local/bin:~/bin:/usr/local/share/npm/bin:$PATH
PATH=$PATH:$HOME PATH=$PATH:$HOME
set -o vi set -o vi
@@ -9,10 +10,6 @@ if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion . $(brew --prefix)/etc/bash_completion
fi fi
if [ -f ~/.bash_local ]; then
. ~/.bash_local
fi
# came from Aaron Lasseigne (AaronLasseigne on GitHub) # came from Aaron Lasseigne (AaronLasseigne on GitHub)
battery_status() battery_status()
{ {
@@ -39,5 +36,10 @@ battery_status()
fi fi
} }
export PROMPT_COMMAND='PS1="$(battery_status) [\d \t] \h:\W \u\$ "' export PROMPT_COMMAND='PS1="[\d \t] \h:\W \u\$ "'
source ~/.bash/aliases
if [ -f ~/.bash_local ]; then
. ~/.bash_local
fi

17
bash/aliases Normal file
View File

@@ -0,0 +1,17 @@
#standard shell aliases
alias ll='ls -l'
alias la='ls -a'
alias lhal='ls -hal'
#git aliases
alias ?='git status'
alias ga='git add'
alias gaa='git add .'
alias gco='git checkout'
alias gc='git commit'
alias gpush='git push'
alias gpull='git pull'
alias gdiff='git diff'
alias merged?='git branch --merged'
alias gbd='git branch -d'