comparison .bashrc @ 144:c9577c9af631

add a command for the alias i always forget
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 07 Jun 2011 17:11:46 -0700
parents dc3c8f90a418
children 700b43d5052e
comparison
equal deleted inserted replaced
143:31a41264d51f 144:c9577c9af631
26 # aliases 26 # aliases
27 alias ls='ls --color=auto' 27 alias ls='ls --color=auto'
28 alias grep='grep --colour=auto' 28 alias grep='grep --colour=auto'
29 alias wget='wget --no-check-certificate' 29 alias wget='wget --no-check-certificate'
30 alias datestamp='date +%Y%m%d%H%M%S' 30 alias datestamp='date +%Y%m%d%H%M%S'
31 alias zfilt='grep -v "eprecat" | grep -v "ERROR Zope"'
32 alias svnst='svn st | grep -v "^\?"' 31 alias svnst='svn st | grep -v "^\?"'
33 alias awd="python -c 'import os; print os.path.realpath(\".\")'" 32 alias awd="python -c 'import os; print os.path.realpath(\".\")'"
34 alias distribute='python setup.py egg_info -RDb "" sdist register upload' 33 alias distribute='python setup.py egg_info -RDb "" sdist register upload'
35 alias random="python -c 'import sys, random; foo = sys.argv[1:]; random.shuffle(foo); print \" \".join(foo)'" 34 alias random="python -c 'import sys, random; foo = sys.argv[1:]; random.shuffle(foo); print \" \".join(foo)'"
36 alias xpcshell="LD_LIBRARY_PATH=${MOZOBJ}/dist/bin ${MOZOBJ}/dist/bin/xpcshell" 35 alias xpcshell="LD_LIBRARY_PATH=${MOZOBJ}/dist/bin ${MOZOBJ}/dist/bin/xpcshell"
57 eend() { 56 eend() {
58 # edit the end of a file with emacs 57 # edit the end of a file with emacs
59 FILE=$1 58 FILE=$1
60 shift 59 shift
61 emacs +`wc -l "$FILE"` $@ 60 emacs +`wc -l "$FILE"` $@
61 }
62
63 git-diff-master() {
64 git diff $(git merge-base HEAD master)
62 } 65 }
63 66
64 function colors() { 67 function colors() {
65 68
66 CLR_WHITE="\033[0;37m" 69 CLR_WHITE="\033[0;37m"