My favorites shell aliases

These are the aliases I use:

alias t='tar zxvf'
alias T='tar zcvf'

alias drush='~/.drush/drush/drush'

alias diff='diff -up'

alias gdiff='git diff --no-prefix'
alias gre='git reset --hard'
alias gst='git status'

alias sd='svn diff'
alias st='svn status'

alias cvs='cvs -q'
alias drcvs='cvs -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal'
alias cdiff='cvs -q diff'

# usual bash stuff
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty'
alias ls='ls --color=tty'
alias vi='vim'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'

I've also attached my git configuration file. Place it in your home directory, adapt it (change name and email) and rename it to .gitconfig.

Comments

Add new comment