base.plugin: simple todo no longer conflicts with todo plugin

pull/309/head
Tamas Pal 2014-07-08 10:34:09 +02:00 committed by Tamás Pál
parent e0c48b1637
commit 60861151b5
1 changed files with 4 additions and 1 deletions

View File

@ -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 ()