bash stuff.
Chris recently wrote about bash aliases for git development. It reminded me of some bash profile tweaking I have done as I’ve gotten into git.
I use subversion as well as git, and I already had some terse aliases ingrained.
alias up='svn up'
alias upi='svn up --ignore-externals'
alias st='clear; svn st --ignore-externals'
alias sv='svn revert'
alias sc='svn ci -m'
alias sd='svn diff | more'
alias svnc='clear; svn st | grep "^C"'
alias sres='svn resolved'
After I make changes to my profile, I use alias sp="source ~/.bash_profile" to load them. To switch to git mode in a shell, I use alias spgit="source ~/.git_profile" which redefines all the subversion aliases as git commands. I like Chris’ checkout function, but I’m going to keep my name for it.
alias up='git pull'
alias st='clear; git status'
alias sd='git diff'
alias sc='git commit -m'
alias sa='git add .'
# sb => git checkout master
# sb bugs => git checkout bugs
function sb {
if [ -z "$1" ]; then
git checkout master
else
git checkout $1
fi
}
Keeping the same aliases for conceptually similar tasks has helped to keep me from slowing down as I ease into git development.
flying ads.
Dear whomever is responsible for ads which pop up and cover the interface whilst moving around and possibly producing sound,
Fuck off. Fuck the fuck off you inhuman monster.
Sincerely,
Seth Thomas Rasmussen



leave a comment