Skip to content

Instantly share code, notes, and snippets.

@rmanalan
Created March 4, 2009 00:10
Show Gist options
  • Save rmanalan/73628 to your computer and use it in GitHub Desktop.
Save rmanalan/73628 to your computer and use it in GitHub Desktop.
# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias gb='git branch -a -v'
alias gs='git status'
alias gd='git diff'
alias gg='git gui &'
alias gl='git log --name-status'
alias ga='git add'
alias gcommit='git commit -m'
alias gp='git push'
alias n='nautilus $1'
alias rr='touch tmp/restart.txt'
# gc => git checkout master
# gc bugs => git checkout bugs
function gc {
if [ -z "$1" ]; then
git checkout master
else
git checkout $1
fi
}
function skill {
ps ax | grep $1 | grep -v grep;
kill -9 `ps ax | grep $1 | grep -v grep | awk '{print $1}'`;
}
function pgrep {
ps ax | grep $1 | grep -v grep;
}
export PS1='[\w$(__git_ps1 "(%s)")] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment