2020-12-25 10:57:31 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
alias taskopen='taskopen -c ${XDG_DATA_HOME}/task/notes'
|
2020-12-25 16:46:54 +00:00
|
|
|
|
|
|
|
# invoking t starts the task shell
|
|
|
|
# passing arguments along passes them straight through to taskwarrior instead
|
|
|
|
t() {
|
|
|
|
# check for existence of tasksh before doing this whole song and dance
|
|
|
|
if type tasksh >/dev/null 2>&1 && [ "$#" -eq 0 ]; then
|
|
|
|
tasksh
|
|
|
|
else
|
|
|
|
task "$@"
|
|
|
|
fi
|
|
|
|
}
|