如何安裝 Taskwarrior(基於終端的待辦事項應用程式)
Taskwarrior 是一款開源的、跨平臺的時間和任務管理工具。它使用命令列介面,而不是圖形使用者介面。如果您在 Linux 終端上花費大量時間(作為開發人員或系統管理員),那麼不斷切換到 Web 應用程式或其他基於 GUI 的待辦事項應用程式可能不是一件高效的事情。在這種情況下,您可能希望嘗試一個簡單的命令列應用程式。本文介紹如何在 Ubuntu 中安裝 Taskwarrior。
要安裝 Taskwarrior,請使用以下命令:
$ sudo apt-get install task
示例輸出應如下所示:
Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libcgmanager0:i386 libdrm2:i386 libhdb9-heimdal libkdc2-heimdal libntdb1 libpng12-0:i386 libudev1:i386 python-ntdb Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: task 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 861 kB of archives. After this operation, 2,104 kB of additional disk space will be used. Get:1 http://ubuntu.excellmedia.net/archive/ trusty/universe task amd64 2.2.0-3 [861 kB] Fetched 861 kB in 1s (643 kB/s) Selecting previously unselected package task. (Reading database ... 281767 files and directories currently installed.) Preparing to unpack .../task_2.2.0-3_amd64.deb ... Unpacking task (2.2.0-3) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up task (2.2.0-3) ...
要使用 taskwarrior,請使用以下命令:
$ task
要向 taskwarrior 新增任務,請使用以下命令:
$ task add Example task due:Tomorrow
在上述命令中,示例任務 是任務資訊。要檢視上述任務,請使用以下命令:
$ task
示例輸出應如下所示:
[task next] ID Due Age Urg Description 1 4/26/2016 12s 8.64 Example task 1 task
要查詢所有待處理任務的列表,請使用以下命令:
$ task long
要完成任務資訊,已完成的任務將不再顯示在“task long”的輸出中,但只能使用“task all”檢視。請使用以下命令:
$ task done
要刪除任務,請使用以下命令:
$ task delete
要將任務標記為已開始,請使用以下命令:
$ task start
要將任務標記為已停止,請使用以下命令:
$ task stop
要修改現有任務,請使用以下命令:
$ task modify
要同步在執行 taskwarrior 的多臺計算機之間同步任務,您必須使用 Dropbox,並使用 push、pull 和 merge,如下所示:
推送
此命令將本地任務資料推送到 Dropbox。現在,在另一臺計算機上,您可以獲取這些任務。
$ task push ~/Dropbox/
拉取
另一臺計算機可以使用以下命令獲取這些任務:
$ task pull ~/Dropbox/
合併
這樣,您就可以保留本地任務,並從另一臺計算機獲取任何更新的任務。您還可以選擇將合併後的任務資料推送到 Dropbox,請使用以下命令:
$ task merge ~/Dropbox/
要獲取有關 taskwarrior 的更多資訊,請使用以下命令:
$ task help
示例輸出應如下所示:
Usage: task Runs rc.default.command, if specified. task active Lists active tasks task add Adds a new task task all Lists all pending and completed tasks task annotate Adds an annotation to an existing task task append Appends text to an existing task description task blocked Lists all blocked tasks task blocking Lists all blocking tasks task burndown.daily Shows a graphical burndown chart, by day task burndown.monthly Shows a graphical burndown chart, by month task burndown.weekly Shows a graphical burndown chart, by week task calendar [due| |] [y] Shows a calendar, with due tasks marked task colors [sample | legend] All colors, a sample, or a legend task columns [substring] All supported columns and formatting styles task completed Lists completed tasks task config [name [value | '']] Change settings in the task configuration task count Counts matching tasks task delete Deletes the specified task task denotate Deletes an annotation task diagnostics Platform, build and environment details ................................................................................................
閱讀本文後,您將能夠理解:如何安裝 Taskwarrior(基於終端的待辦事項應用程式)。在我們的下一篇文章中,我們將推出更多基於 Linux 的技巧和提示。敬請關注!
資料結構
網路
關係型資料庫管理系統
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP