comparison .bashrc @ 642:b52004eb7761

no more moz
author Jeff Hammel <k0scist@gmail.com>
date Tue, 11 Mar 2014 11:38:45 -0700
parents 69babe3ef8a7
children a5cd31e0b8e7
comparison
equal deleted inserted replaced
641:15c20cfc6b22 642:b52004eb7761
45 alias xpcshell="LD_LIBRARY_PATH=${MOZOBJ}/dist/bin ${MOZOBJ}/dist/bin/xpcshell" 45 alias xpcshell="LD_LIBRARY_PATH=${MOZOBJ}/dist/bin ${MOZOBJ}/dist/bin/xpcshell"
46 if [ -e ~/.bashttw ] 46 if [ -e ~/.bashttw ]
47 then 47 then
48 . ~/.bashttw 48 . ~/.bashttw
49 fi 49 fi
50
51 # bzconsole aliases for filing bugs
52 alias mozbase-bug="bz new Mozbase --cc ':wlach'"
53 alias mozbuild-bug="bz new --product Core 'Build Config' --cc ':gps'"
54 alias mozharness-bug="bz new --product 'Release Engineering' 'General Automation' --cc ':aki' --whiteboard 'mozharness'"
55 alias talos-bug="bz new Talos --cc ':jmaher'"
56 50
57 # notification: from 51 # notification: from
58 # http://www.netinfinity.org/2013/02/4/bits-and-pieces-ubuntu-terminal-notification.html 52 # http://www.netinfinity.org/2013/02/4/bits-and-pieces-ubuntu-terminal-notification.html
59 alias alert_helper='history|tail -n1|sed -e "s/^\s*[0-9]\+\s*//" -e "s/;\s*alert$//"' 53 alias alert_helper='history|tail -n1|sed -e "s/^\s*[0-9]\+\s*//" -e "s/;\s*alert$//"'
60 alias alert='notify-send -i /usr/share/icons/gnome/32x32/apps/gnome-terminal.png "[$?] $(alert_helper)"' 54 alias alert='notify-send -i /usr/share/icons/gnome/32x32/apps/gnome-terminal.png "[$?] $(alert_helper)"'
243 echo "$NEWNAME" 237 echo "$NEWNAME"
244 done 238 done
245 } 239 }
246 240
247 abspath() { 241 abspath() {
242 # print absolute path
248 python -c "import os; print (os.path.realpath('$*'))" 243 python -c "import os; print (os.path.realpath('$*'))"
249 } 244 }
250 245
251 fn() { 246 fn() {
252 # put full name on clipboard and echo it 247 # put full name on clipboard and echo it
381 fi 376 fi
382 done 377 done
383 } 378 }
384 379
385 distribute() { 380 distribute() {
381 # upload to pypi
386 python setup.py egg_info -RDb "" sdist register upload develop 382 python setup.py egg_info -RDb "" sdist register upload develop
387 } 383 }
388 384
389 nearest-venv() { 385 nearest-venv() {
386 # find the nearest venv
390 if [[ "$#" == "0" ]] 387 if [[ "$#" == "0" ]]
391 then 388 then
392 directory=$PWD 389 directory=$PWD
393 else 390 else
394 directory=$1 391 directory=$1
409 done 406 done
410 return 1 407 return 1
411 } 408 }
412 409
413 activate-nearest() { 410 activate-nearest() {
411 # activate the nearest virtualenv
414 nearest=$(nearest-venv) 412 nearest=$(nearest-venv)
415 activate=${nearest}/bin/activate 413 activate=${nearest}/bin/activate
416 if [ -e "${activate}" ] 414 if [ -e "${activate}" ]
417 then 415 then
418 . ${activate} 416 . ${activate}
571 . ${TMPFILE} | sort 569 . ${TMPFILE} | sort
572 rm ${TMPFILE} 570 rm ${TMPFILE}
573 } 571 }
574 572
575 quotemail() { 573 quotemail() {
576 574 # TODO: -> textshaper
577 command='s/^/> /' 575 command='s/^/> /'
578 inplace="" 576 inplace=""
579 if [ "$#" == "2" ] 577 if [ "$#" == "2" ]
580 then 578 then
581 inplace="-i" 579 inplace="-i"