insensitive function to search in taskwarrior

This commit is contained in:
Jeremy Gardais 2018-03-30 14:08:06 +02:00
parent 3dc0ad8268
commit 93ac8de3ac
1 changed files with 9 additions and 2 deletions

11
zshrc
View File

@ -295,12 +295,19 @@ alias wtask="task +work | head"
alias t="task" alias t="task"
alias tawa="task waiting" alias tawa="task waiting"
## search a task by it's name ## search a task by it's name (case INsensitive)
function tase() { function tase() {
search="";
for i; do; search="$search /$i/"; done;
task rc.search.case.sensitive:no $search all;
}
## search a task by it's name (case SENSITIVE)
function tasec() {
search=""; search="";
for i; do; search="$search /$i/"; done; for i; do; search="$search /$i/"; done;
task $search all; task $search all;
} }
# }}} # }}}