Add timew function for last month and week
This commit is contained in:
		
							parent
							
								
									3d823c57e0
								
							
						
					
					
						commit
						51c95762d4
					
				
							
								
								
									
										27
									
								
								zshrc
								
								
								
								
							
							
						
						
									
										27
									
								
								zshrc
								
								
								
								
							|  | @ -365,6 +365,15 @@ function taweek() { | |||
| 	fi | ||||
| } | ||||
| ## }}} | ||||
| ## Display tasks of last week {{{ | ||||
| function talastweek() { | ||||
| 	if [ "${#}" -eq 0 ]; then | ||||
| 		timew summary :lastweek :ids | ||||
| 	else | ||||
| 		timew summary :lastweek :ids "${*}" | ||||
| 	fi | ||||
| } | ||||
| ## }}} | ||||
| ## Display tasks of this month {{{ | ||||
| function tamonth() { | ||||
| 	if [ "${#}" -eq 0 ]; then | ||||
|  | @ -374,6 +383,15 @@ function tamonth() { | |||
| 	fi | ||||
| } | ||||
| ## }}} | ||||
| ## Display tasks of last month {{{ | ||||
| function talastmonth() { | ||||
| 	if [ "${#}" -eq 0 ]; then | ||||
| 		timew summary :lastmonth :ids | ||||
| 	else | ||||
| 		timew summary :lastmonth :ids "${*}" | ||||
| 	fi | ||||
| } | ||||
| ## }}} | ||||
| ## Display tasks of this year {{{ | ||||
| function tayear() { | ||||
| 	if [ "${#}" -eq 0 ]; then | ||||
|  | @ -383,6 +401,15 @@ function tayear() { | |||
| 	fi | ||||
| } | ||||
| ## }}} | ||||
| ## Display tasks of last year {{{ | ||||
| function talastyear() { | ||||
| 	if [ "${#}" -eq 0 ]; then | ||||
| 		timew summary :lastyear :ids | ||||
| 	else | ||||
| 		timew summary :lastyear :ids "${*}" | ||||
| 	fi | ||||
| } | ||||
| ## }}} | ||||
| 
 | ||||
| ## Completion | ||||
| zstyle ':completion:*:*:task:*' verbose yes | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue