From bca6ed08439a6b106b21bc37634b75a9fe6ab9cb Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Fri, 14 Apr 2023 10:07:39 +0800 Subject: tkc -> context --- bin/task/context | 4 ++++ bin/task/shellrc | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/task') diff --git a/bin/task/context b/bin/task/context index 06848d6..639f54a 100755 --- a/bin/task/context +++ b/bin/task/context @@ -16,6 +16,10 @@ PROC=$$ context="$(cat ~/.task/context)" [[ "$*" =~ '-s' ]] && SET=true && shift +[[ "$1" =~ ^[a-zA-Z] ]] && { + echo "$1" > ~/.task/context + exit 0 +} time="$1" # The unit of time display. For example: diff --git a/bin/task/shellrc b/bin/task/shellrc index 7098ac0..6d7f109 100644 --- a/bin/task/shellrc +++ b/bin/task/shellrc @@ -1,7 +1,6 @@ # task alias c='context' tk() { task rc.context=`cat ~/.task/context` $@; } -tkc(){ echo $1 >~/.task/context; } alias tkcc='task context' tkcn() { echo none >~/.task/context; } tkcp() { echo plan >~/.task/context; } -- cgit v1.2.3-70-g09d2