mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 11:29:56 -06:00
first pass at adding aliases for common commands
This commit is contained in:
@@ -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=$PATH:$HOME
|
||||
set -o vi
|
||||
@@ -9,10 +10,6 @@ if [ -f $(brew --prefix)/etc/bash_completion ]; then
|
||||
. $(brew --prefix)/etc/bash_completion
|
||||
fi
|
||||
|
||||
if [ -f ~/.bash_local ]; then
|
||||
. ~/.bash_local
|
||||
fi
|
||||
|
||||
# came from Aaron Lasseigne (AaronLasseigne on GitHub)
|
||||
battery_status()
|
||||
{
|
||||
@@ -39,5 +36,10 @@ battery_status()
|
||||
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
17
bash/aliases
Normal 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'
|
||||
Reference in New Issue
Block a user