Mercurial > hg > config
comparison .bashrc @ 84:7ddb611ba0c1
add update all command
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 01 Aug 2010 22:53:04 -0700 |
parents | 84ffa220796a |
children | e1ec232bd0a1 |
comparison
equal
deleted
inserted
replaced
83:4f49c0caa801 | 84:7ddb611ba0c1 |
---|---|
39 # PATHs | 39 # PATHs |
40 export PATH=~/bin:~/python:$PATH:/usr/sbin:/usr/games/bin | 40 export PATH=~/bin:~/python:$PATH:/usr/sbin:/usr/games/bin |
41 export PYTHONPATH=~/python:$PYTHONPATH | 41 export PYTHONPATH=~/python:$PYTHONPATH |
42 | 42 |
43 | 43 |
44 # functions | 44 ### functions |
45 | |
45 cdwin() { | 46 cdwin() { |
46 # change directory to a window's location using its title | 47 # change directory to a window's location using its title |
47 DIR=$(xwininfo | dictify.py xwininfo | awk '{ print $NF }' | sed 's/"//g') | 48 DIR=$(xwininfo | dictify.py xwininfo | awk '{ print $NF }' | sed 's/"//g') |
48 DIR=${DIR/\~/$HOME} | 49 DIR=${DIR/\~/$HOME} |
49 cd $DIR | 50 cd $DIR |
257 | 258 |
258 difffiles() { | 259 difffiles() { |
259 grep '^+++ ' $@ | sed 's/+++ b\///' | 260 grep '^+++ ' $@ | sed 's/+++ b\///' |
260 } | 261 } |
261 | 262 |
263 hg-update-all() { | |
264 for i in *; | |
265 do | |
266 if [ -e $i/.hg ] | |
267 then | |
268 cd $i | |
269 hg pull | |
270 hg update | |
271 cd - | |
272 fi | |
273 done | |
274 } | |
275 | |
262 ### include overrides for commands | 276 ### include overrides for commands |
263 source ~/.bash_overrides | 277 source ~/.bash_overrides |
264 | 278 |
265 ### regenerate fluxbox menus here for convenience | 279 ### regenerate fluxbox menus here for convenience |
266 MENU=~/web/site/programs.html | 280 MENU=~/web/site/programs.html |