diff --git a/taskwarrior/.config/sh/env.d/taskwarrior-ensure-files.sh b/taskwarrior/.config/sh/env.d/taskwarrior-ensure-files.sh new file mode 100644 index 0000000..1562533 --- /dev/null +++ b/taskwarrior/.config/sh/env.d/taskwarrior-ensure-files.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env sh +# Ensure necessary taskwarrior includes exist + + +[ -e "${XDG_CONFIG_HOME:-$HOME/.config}/task/contexts" ] || touch "${XDG_CONFIG_HOME:-$HOME/.config}/task/contexts" +[ -e "${XDG_CONFIG_HOME:-$HOME/.config}/task/task-sync.rc" ] || touch "${XDG_CONFIG_HOME:-$HOME/.config}/task/task-sync.rc"