respect profile overrides
overrides may now be specified for any of these defaults:
TODO_DIR=$BASH_IT/custom # change if you want todo.txt and friends
# to live somewhere else
TODOTXT_DEFAULT_ACTION=ls # change if you want a different action,
# like 'lsp' or 'lsprj'
TODO_SRC_DIR=
$BASH_IT/plugins/available/todo # for custom installs with plugins
pull/129/head^2
parent
00cab2fd6a
commit
57283d72de
|
|
@ -1,9 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export TODO_DIR=$HOME/.bash_it/custom # store todo items in user's custom dir, ignored by git
|
# you may override any of the exported variables below in your .bash_profile
|
||||||
export TODOTXT_DEFAULT_ACTION=ls # typing 't' by itself will list current todos
|
|
||||||
|
|
||||||
export TODO_SRC_DIR=$HOME/.bash_it/plugins/available/todo
|
if [ -z "$TODO_DIR" ]; then
|
||||||
|
export TODO_DIR=$BASH_IT/custom # store todo items in user's custom dir, ignored by git
|
||||||
|
fi
|
||||||
|
if [ -z "$TODOTXT_DEFAULT_ACTION" ]; then
|
||||||
|
export TODOTXT_DEFAULT_ACTION=ls # typing 't' by itself will list current todos
|
||||||
|
fi
|
||||||
|
if [ -z "$TODO_SRC_DIR" ]; then
|
||||||
|
export TODO_SRC_DIR=$BASH_IT/plugins/available/todo
|
||||||
|
fi
|
||||||
|
|
||||||
# respect ENV var set in .bash_profile, default is 't'
|
# respect ENV var set in .bash_profile, default is 't'
|
||||||
alias $TODO='$TODO_SRC_DIR/todo.sh -d $TODO_SRC_DIR/todo.cfg'
|
alias $TODO='$TODO_SRC_DIR/todo.sh -d $TODO_SRC_DIR/todo.cfg'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue