#!/bin/bash # # Worklog wrapper # # Alternatives to current worklog backend: # # https://github.com/distilledhype/node-worklog # https://github.com/snaptortoise/worklog # https://github.com/tormaroe/worklog # https://github.com/winged/worklog # https://github.com/yaccz/worklog BASE="$HOME/file" CODE="$HOME/code" GROUP="$1" ACTION="$2" BASENAME="`basename $0`" EDITOR=${EDITOR:=vi} # Set window title # http://stackoverflow.com/questions/899609/gnu-screen-run-script-that-sends-commands-to-the-screen-session-it-is-being-run function timelog_window_title { if [ -n "$STY" ]; then screen -p $WINDOW -X title "$*" else if which xtitle &> /dev/null; then xtitle "$*" fi fi } # Setup a new worklog configuration function timelog_setup { cat > $BASE/$GROUP/worklog/projects <