From 60861151b5db379d180b8c2481f604009cac7999 Mon Sep 17 00:00:00 2001 From: Tamas Pal Date: Tue, 8 Jul 2014 10:34:09 +0200 Subject: [PATCH] base.plugin: simple todo no longer conflicts with todo plugin --- plugins/available/base.plugin.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/available/base.plugin.bash b/plugins/available/base.plugin.bash index ea02bb7b..4f09c515 100644 --- a/plugins/available/base.plugin.bash +++ b/plugins/available/base.plugin.bash @@ -153,7 +153,7 @@ function usage () if [ ! -e $BASH_IT/plugins/enabled/todo.plugin.bash ]; then # if user has installed todo plugin, skip this... - function t () + function __simpletodo () { about 'one thing todo' param 'if not set, display todo item' @@ -164,6 +164,9 @@ if [ ! -e $BASH_IT/plugins/enabled/todo.plugin.bash ]; then echo "$*" > ~/.t fi } + if ! alias | grep -q ' t='; then + alias t=__simpletodo + fi fi function command_exists ()