Sophie Hirn 3 years ago
parent
commit
e76439c0e5
2 changed files with 10 additions and 4 deletions
  1. +5
    -2
      .bashrc.d/91-todo.sh
  2. +5
    -2
      .local/bin/todo-here

+ 5
- 2
.bashrc.d/91-todo.sh View File

@@ -1,8 +1,11 @@
#!/bin/bash

if which "todocli" >/dev/null 2>&1 && [ -f "$HOME/todo.cfg" ] && [ -z "$BASHRC_NOFANCIES" ]; then
which "todocli" >/dev/null 2>&1 && ex="todocli"
which "todo.sh" >/dev/null 2>&1 && ex="todo.sh"

if [ -n "$ex" ] && [ -f "$HOME/todo.cfg" ] && [ -z "$BASHRC_NOFANCIES" ]; then
echo "Agenda:"
todocli lsp a
"$ex" lsp a
if [ `date +%u` -le 5 ]; then
if [ `date +%H` -ge 10 ]; then
if [ `date +%H` -le 17 ]; then

+ 5
- 2
.local/bin/todo-here View File

@@ -1,9 +1,12 @@
#!/bin/bash

which "todocli" >/dev/null 2>&1 && ex="todocli"
which "todo.sh" >/dev/null 2>&1 && ex="todo.sh"

if [ -n "$1" ]; then
todocli "$@" \
"$ex" "$@" \
{%{todo:}%}{%{todo-here}%}
else
todocli ls \
"$ex" ls \
{%{todo:}%}{%{todo-here}%}
fi

Loading…
Cancel
Save