Add stack command

This commit is contained in:
Tyler Perkins 2023-12-14 15:09:40 -05:00
parent d9a2468279
commit 8f0104a1ac
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
1 changed files with 8 additions and 0 deletions

8
src/stack Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
if [ -z "${TODO_LOCATION}" ]; then
mkdir -p $HOME/.config/stackToDo
TODO_LOCATION="$HOME/.config/stackToDo/todo"
fi
watch -n 1 "tac \"$TODO_LOCATION\" | sed '1s/^\(.*\)$/> \1 </' | sed '2,\$s/^/ /'"