plans: help command

This commit is contained in:
Daniella / Tove 2024-10-30 01:31:11 +01:00
parent b9f6237786
commit 371a5d8425

View file

@ -2,6 +2,16 @@ with import <nixpkgs> {};
pkgs.writeShellScriptBin "plans" ''
#!/bin/sh
if [ "$1" = "help" ] ; then
echo "plans (tudbut)"
echo
echo "- add <str> -- add to end of list"
echo "- done -- remove from start of list"
echo "- edit -- edit manually using helix"
echo
echo "file used is ~/sync/plans.txt"
exit
fi
if [ "$1" = "add" ] ; then
echo "- $2" >> ~/sync/plans.txt
fi