Skip to content

Instantly share code, notes, and snippets.

@eethann
Forked from fmartingr/dotask.sh
Last active January 22, 2019 12:13
Show Gist options
  • Save eethann/dbc484895a5bee750395c8b4ac025643 to your computer and use it in GitHub Desktop.
Save eethann/dbc484895a5bee750395c8b4ac025643 to your computer and use it in GitHub Desktop.
Add check for empty ID, to avoid unhandled error where no ID specified
#!/bin/bash
TMPFILE='/tmp/rofi-dmenu-taskwarrior'
task rofi rc.verbose=nothing > $TMPFILE
TASK=`rofi -dmenu -p "Task: " -i -input $TMPFILE`
TASK_ID=`echo $TASK | cut -f1 -d' '`
echo $TASK_ID > /tmp/dotask-id
[[ ! -z "$var" ]] && task start $TASK_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment