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 {{{
|
## Display tasks of today {{{
|
||||||
function taday() {
|
function taday() {
|
||||||
|
if [ "${#}" -eq 0 ]; then
|
||||||
|
timew summary :day :ids
|
||||||
|
else
|
||||||
timew summary :day :ids "${*}"
|
timew summary :day :ids "${*}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## Display tasks of this week {{{
|
## Display tasks of this week {{{
|
||||||
function taweek() {
|
function taweek() {
|
||||||
|
if [ "${#}" -eq 0 ]; then
|
||||||
|
timew summary :week :ids
|
||||||
|
else
|
||||||
timew summary :week :ids "${*}"
|
timew summary :week :ids "${*}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## Display tasks of this month {{{
|
## Display tasks of this month {{{
|
||||||
function tamonth() {
|
function tamonth() {
|
||||||
|
if [ "${#}" -eq 0 ]; then
|
||||||
|
timew summary :month :ids
|
||||||
|
else
|
||||||
timew summary :month :ids "${*}"
|
timew summary :month :ids "${*}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## Display tasks of this year {{{
|
## Display tasks of this year {{{
|
||||||
function tayear() {
|
function tayear() {
|
||||||
|
if [ "${#}" -eq 0 ]; then
|
||||||
|
timew summary :year :ids
|
||||||
|
else
|
||||||
timew summary :year :ids "${*}"
|
timew summary :year :ids "${*}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue