mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 12:49: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=/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
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