parent
e10539bb6b
commit
f8a4a72080
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 ()
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue