cleanup and fixes for config in home dir
This commit is contained in:
parent
57fa0afede
commit
6023ed42bf
13 changed files with 66 additions and 344 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue