Aliases: New prefix for Timewarrior commands
This commit is contained in:
parent
ca7553b9d8
commit
9e16ffa2fb
28
zshrc
28
zshrc
|
@ -421,8 +421,15 @@ function tasec() {
|
||||||
task $search all;
|
task $search all;
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
|
|
||||||
|
## Completion
|
||||||
|
zstyle ':completion:*:*:task:*' verbose yes
|
||||||
|
zstyle ':completion:*:*:task:*:descriptions' format '%U%B%d%b%u'
|
||||||
|
zstyle ':completion:*:*:task:*' group-name ''
|
||||||
|
# }}}
|
||||||
|
# Timewarrior {{{
|
||||||
## Display tasks of today {{{
|
## Display tasks of today {{{
|
||||||
function taday() {
|
function tiday() {
|
||||||
if [ "${#}" -eq 0 ]; then
|
if [ "${#}" -eq 0 ]; then
|
||||||
timew summary :day :ids
|
timew summary :day :ids
|
||||||
else
|
else
|
||||||
|
@ -431,7 +438,7 @@ function taday() {
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## Display tasks of last day {{{
|
## Display tasks of last day {{{
|
||||||
function talastday() {
|
function tilastday() {
|
||||||
if [ "${#}" -eq 0 ]; then
|
if [ "${#}" -eq 0 ]; then
|
||||||
timew summary :yesterday :ids
|
timew summary :yesterday :ids
|
||||||
else
|
else
|
||||||
|
@ -440,7 +447,7 @@ function talastday() {
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## Display tasks of this week {{{
|
## Display tasks of this week {{{
|
||||||
function taweek() {
|
function tiweek() {
|
||||||
if [ "${#}" -eq 0 ]; then
|
if [ "${#}" -eq 0 ]; then
|
||||||
timew summary :week :ids
|
timew summary :week :ids
|
||||||
else
|
else
|
||||||
|
@ -449,7 +456,7 @@ function taweek() {
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## Display tasks of last week {{{
|
## Display tasks of last week {{{
|
||||||
function talastweek() {
|
function tilastweek() {
|
||||||
if [ "${#}" -eq 0 ]; then
|
if [ "${#}" -eq 0 ]; then
|
||||||
timew summary :lastweek :ids
|
timew summary :lastweek :ids
|
||||||
else
|
else
|
||||||
|
@ -458,7 +465,7 @@ function talastweek() {
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## Display tasks of this month {{{
|
## Display tasks of this month {{{
|
||||||
function tamonth() {
|
function timonth() {
|
||||||
if [ "${#}" -eq 0 ]; then
|
if [ "${#}" -eq 0 ]; then
|
||||||
timew summary :month :ids
|
timew summary :month :ids
|
||||||
else
|
else
|
||||||
|
@ -467,7 +474,7 @@ function tamonth() {
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## Display tasks of last month {{{
|
## Display tasks of last month {{{
|
||||||
function talastmonth() {
|
function tilastmonth() {
|
||||||
if [ "${#}" -eq 0 ]; then
|
if [ "${#}" -eq 0 ]; then
|
||||||
timew summary :lastmonth :ids
|
timew summary :lastmonth :ids
|
||||||
else
|
else
|
||||||
|
@ -476,7 +483,7 @@ function talastmonth() {
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## Display tasks of this year {{{
|
## Display tasks of this year {{{
|
||||||
function tayear() {
|
function tiyear() {
|
||||||
if [ "${#}" -eq 0 ]; then
|
if [ "${#}" -eq 0 ]; then
|
||||||
timew summary :year :ids
|
timew summary :year :ids
|
||||||
else
|
else
|
||||||
|
@ -485,7 +492,7 @@ function tayear() {
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## Display tasks of last year {{{
|
## Display tasks of last year {{{
|
||||||
function talastyear() {
|
function tilastyear() {
|
||||||
if [ "${#}" -eq 0 ]; then
|
if [ "${#}" -eq 0 ]; then
|
||||||
timew summary :lastyear :ids
|
timew summary :lastyear :ids
|
||||||
else
|
else
|
||||||
|
@ -494,11 +501,6 @@ function talastyear() {
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
|
|
||||||
## Completion
|
|
||||||
zstyle ':completion:*:*:task:*' verbose yes
|
|
||||||
zstyle ':completion:*:*:task:*:descriptions' format '%U%B%d%b%u'
|
|
||||||
zstyle ':completion:*:*:task:*' group-name ''
|
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# DebOps {{{
|
# DebOps {{{
|
||||||
|
|
Loading…
Reference in New Issue