Add arguments only if present
This commit is contained in:
parent
d9f761340f
commit
16cc5efc08
16
zshrc
16
zshrc
|
@ -346,22 +346,38 @@ function tasec() {
|
|||
## }}}
|
||||
## Display tasks of today {{{
|
||||
function taday() {
|
||||
if [ "${#}" -eq 0 ]; then
|
||||
timew summary :day :ids
|
||||
else
|
||||
timew summary :day :ids "${*}"
|
||||
fi
|
||||
}
|
||||
## }}}
|
||||
## Display tasks of this week {{{
|
||||
function taweek() {
|
||||
if [ "${#}" -eq 0 ]; then
|
||||
timew summary :week :ids
|
||||
else
|
||||
timew summary :week :ids "${*}"
|
||||
fi
|
||||
}
|
||||
## }}}
|
||||
## Display tasks of this month {{{
|
||||
function tamonth() {
|
||||
if [ "${#}" -eq 0 ]; then
|
||||
timew summary :month :ids
|
||||
else
|
||||
timew summary :month :ids "${*}"
|
||||
fi
|
||||
}
|
||||
## }}}
|
||||
## Display tasks of this year {{{
|
||||
function tayear() {
|
||||
if [ "${#}" -eq 0 ]; then
|
||||
timew summary :year :ids
|
||||
else
|
||||
timew summary :year :ids "${*}"
|
||||
fi
|
||||
}
|
||||
## }}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue