- fix for non-US locale

- fix for missed TODO environment variable
pull/337/head
Sergey Zhumatiy 2014-08-29 13:55:48 +04:00
parent e10539bb6b
commit f8a4a72080
3 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,8 @@ if [ -z "$BASH_IT" ];
then
# Setting $BASH to maintain backwards compatibility
# TODO: warn users that they should upgrade their .bash_profile
export BASH_IT=$BASH
export BASH_IT=~/.bash_it/
#$BASH
export BASH=`bash -c 'echo $BASH'`
fi

View File

@ -80,7 +80,7 @@ _is_function ()
_about 'sets $? to true if parameter is the name of a function'
_param '1: name of alleged function'
_group 'lib'
[ -n "$(type -a $1 2>/dev/null | grep 'is a function')" ]
[ "x$(type -t $1 2>/dev/null)" = 'xfunction' ]
}
_bash-it-aliases ()

View File

@ -12,6 +12,9 @@ if [ -z "$TODO_SRC_DIR" ]; then
export TODO_SRC_DIR=$BASH_IT/plugins/available/todo
fi
if [ -z "$TODO" ]; then
export TODO='t'
fi
# respect ENV var set in .bash_profile, default is 't'
alias $TODO='$TODO_SRC_DIR/todo.sh -d $TODO_SRC_DIR/todo.cfg'