task: Ensure necessary files exist on start
There are some includes in taskwarrior which make the program error out if they don't exist on start. This little hook ensures that they get created each time a new environment is created.
This commit is contained in:
parent
03684ce29f
commit
dbcc18cc56
1 changed files with 6 additions and 0 deletions
6
taskwarrior/.config/sh/env.d/taskwarrior-ensure-files.sh
Normal file
6
taskwarrior/.config/sh/env.d/taskwarrior-ensure-files.sh
Normal file
|
@ -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"
|
Loading…
Reference in a new issue