Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: a499bb075c
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (18 sloc) 0.422 kB
#!/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
home=`cd ~; pwd`
tdir="${home}/Dropbox/tasks"
mkdir -p $tdir
# update .atea configuration
tasks="${tdir}/${BASH_REMATCH[1]}.tasks"
echo "{:file \"${tasks}\"}" > ~/.atea
if [[ $1 == -o ]]; then
touch $tasks
open $tasks
fi
fi
Jump to Line
Something went wrong with that request. Please try again.