Mercurial > index.cgi > dotfiles
comparison .bash_aliases @ 43:0a7d093f4c04
* Changed Toodledo sorts/greps based on context, not folder
* After fixing status, removing deferred tasks will work wherever it's
grepped.
| author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
|---|---|
| date | Tue, 22 Jun 2010 20:54:43 +0000 |
| parents | 998337c2b6f2 |
| children | 0fc97adb3d7a |
comparison
equal
deleted
inserted
replaced
| 42:998337c2b6f2 | 43:0a7d093f4c04 |
|---|---|
| 89 alias condor_check="ls -lat /u/condor/hosts/*/log/MasterLog /scr/chimera0/condor/hosts/*/log/MasterLog" | 89 alias condor_check="ls -lat /u/condor/hosts/*/log/MasterLog /scr/chimera0/condor/hosts/*/log/MasterLog" |
| 90 | 90 |
| 91 # Functions | 91 # Functions |
| 92 update_toodledo() { | 92 update_toodledo() { |
| 93 case `hostname -s` in | 93 case `hostname -s` in |
| 94 xanadu|rapture|syrinx) | 94 xanadu|syrinx) |
| 95 TOODLEDO_CMDS="toodledo tasks *Work; toodledo tasks *Personal" | 95 TOODLEDO_CMDS="toodledo tasks @Work; toodledo tasks @Anywhere" |
| 96 ;; | 96 ;; |
| 97 | 97 |
| 98 milton) | 98 milton) |
| 99 TOODLEDO_CMDS="toodledo tasks *Home; toodledo tasks *Personal" | 99 TOODLEDO_CMDS="toodledo tasks @Home; toodledo tasks @Anywhere" |
| 100 ;; | |
| 101 | |
| 102 rapture) | |
| 103 TOODLEDO_CMDS="toodledo tasks @Anywhere" | |
| 100 ;; | 104 ;; |
| 101 esac | 105 esac |
| 102 | 106 |
| 103 [[ -e $HOME/.todo.$$ ]] && return | 107 [[ -e $HOME/.todo.$$ ]] && return |
| 104 | 108 |
| 110 return | 114 return |
| 111 } | 115 } |
| 112 echo "To-do list as of `date`" > $HOME/.todo | 116 echo "To-do list as of `date`" > $HOME/.todo |
| 113 echo "---------------------------------------------" >> $HOME/.todo | 117 echo "---------------------------------------------" >> $HOME/.todo |
| 114 egrep '^<[0-9]+>' $HOME/.todo.$$ | egrep '#\[[0-9]+/[0-9]+/[0-9]+' | sort -k 5.3 >> $HOME/.todo | 118 egrep '^<[0-9]+>' $HOME/.todo.$$ | egrep '#\[[0-9]+/[0-9]+/[0-9]+' | sort -k 5.3 >> $HOME/.todo |
| 115 egrep '^<[0-9]+>' $HOME/.todo.$$ | egrep -v '(#\[[0-9]+/[0-9]+/[0-9]+|status\[\])' >> $HOME/.todo | 119 egrep '^<[0-9]+>' $HOME/.todo.$$ | egrep -v '(#\[[0-9]+/[0-9]+/[0-9]+|status\[(Delegated|Waiting|Hold|Postponed|Someday|Canceled|Reference)\])' >> $HOME/.todo |
| 116 rm $HOME/.todo.$$ | 120 rm $HOME/.todo.$$ |
| 117 } | 121 } |
| 118 | 122 |
| 119 # vim: set filetype=sh : | 123 # vim: set filetype=sh : |
