added check to see if dotf was installed
This commit is contained in:
parent
b8ee31a757
commit
c663d00719
@ -5,8 +5,10 @@ function t(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function todo_status(){
|
function todo_status(){
|
||||||
|
if command -v todo.sh > /dev/null; then
|
||||||
NUM="$(todo.sh lsp "$1" | sed -n 's/.*TODO: \([0-9]\+\).*/\1/p')"
|
NUM="$(todo.sh lsp "$1" | sed -n 's/.*TODO: \([0-9]\+\).*/\1/p')"
|
||||||
[[ "$NUM" -ne 0 ]] && echo "YES"
|
[[ "$NUM" -ne 0 ]] && echo "YES"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_todo()
|
_todo()
|
||||||
|
Loading…
Reference in New Issue
Block a user