cleanup and fixes for config in home dir

This commit is contained in:
crater 2013-03-18 09:27:26 +01:00 committed by Alexander Gehrke (crater2150)
parent 57fa0afede
commit 6023ed42bf
13 changed files with 66 additions and 344 deletions

View file

@ -1,10 +1,15 @@
#!/bin/zsh
todo_count() {
if [ -n "$2" ]; then
file="--database $2"
else
file="-G"
fi
todo ${=file} -f +${1:-high} | wc -l
}
if command -v todo >/dev/null; then
todo_count() {
if [ -n "$2" ]; then
file="--database $2"
else
file="-G"
fi
todo ${=file} -f +${1:-high} | wc -l
}
else
todo_count() {
echo -1
}
fi