Skip to content

Commit

Permalink
tasks.sh now looks for local files first
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Kamenarsky committed Feb 22, 2012
1 parent 9868569 commit 82e7bb3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks.sh
@@ -1,5 +1,12 @@
#!/bin/bash #!/bin/bash


localtask=`ls *.tasks 2> /dev/null | head -n 1`

if [[ -n $localtask ]]; then
echo "{:file \"`pwd`/${localtask}\"}" > ~/.atea
exit
fi

if [[ `pwd` =~ .*/(.*) ]]; then if [[ `pwd` =~ .*/(.*) ]]; then
home=`cd ~; pwd` home=`cd ~; pwd`
tdir="${home}/Dropbox/tasks" tdir="${home}/Dropbox/tasks"
Expand Down

0 comments on commit 82e7bb3

Please sign in to comment.