From: Mark Szymanski Date: Fri, 5 Nov 2010 20:02:12 +0000 (-0500) Subject: Added t alias for one thing todo. Inspired by http://onethingwell.org/post/758016936... X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=4b26a7874506859a5a474e93fb9f5394484f60c9;p=common%2Fbash_it.git Added t alias for one thing todo. Inspired by onethingwell.org/post/758016936/one-thing-todo --- diff --git a/plugins/base.plugin.bash b/plugins/base.plugin.bash index f9e1370..c30d731 100644 --- a/plugins/base.plugin.bash +++ b/plugins/base.plugin.bash @@ -55,3 +55,14 @@ usage () fi fi } + +# One thing todo + + t() { + if [[ "$*" == "" ]] ; then + cat ~/.t + else + echo "$*" > ~/.t + fi + } +