This commit is contained in:
lw-everestlinux 2022-08-04 11:29:06 -04:00
parent 2266657df4
commit 36512d80e9
2 changed files with 30 additions and 27 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh
# ~/.config/now/events.sh
# Script which will define events
# Events should end with a newline character (\n)
export now_event_1=""
export now_event_2=""

View File

@ -11,7 +11,7 @@ while [[ $# -gt 0 ]]; do
-h|--help)
printf "$blue now - a simple to-do list written in POSIX sh $reset\n"
printf "now {-h --help} show this message\n"
printf "now {-a --add} [name] [date] [time] add an event\n"
#printf "now {-a --add} [name] [date] [time] add an event\n" # This flag is deprecated
printf "now {--version} show the current version of now\n"
printf "\n"
printf "Events can be added by editing ~/.config/now/events.sh\n"
@ -20,12 +20,14 @@ while [[ $# -gt 0 ]]; do
exit 0
;;
--version)
printf "$blue now - v0.1rc $reset"
printf "$blue now - v1.0 $reset"
exit 0
;;
-*|--*)
printf "$red Unknown option, use --help to see usage $reset"
exit 1
*)
printf "$red Unknown option, use --help to see usage $reset"
;;
esac
@ -33,29 +35,29 @@ done
printf "$blue To do for $now_current_date: $reset\n"
printf ""
printf "$now_event_1\n"
printf "$now_event_2\n"
printf "$now_event_3\n"
printf "$now_event_4\n"
printf "$now_event_5\n"
printf "$now_event_6\n"
printf "$now_event_7\n"
printf "$now_event_8\n"
printf "$now_event_9\n"
printf "$now_event_10\n"
printf "$now_event_11\n"
printf "$now_event_12\n"
printf "$now_event_13\n"
printf "$now_event_14\n"
printf "$now_event_15\n"
printf "$now_event_16\n"
printf "$now_event_17\n"
printf "$now_event_18\n"
printf "$now_event_19\n"
printf "$now_event_20\n"
printf "$now_event_21\n"
printf "$now_event_22\n"
printf "$now_event_23\n"
printf "$now_event_24\n"
printf "$now_event_25\n"
printf "$now_event_1"
printf "$now_event_2"
printf "$now_event_3"
printf "$now_event_4"
printf "$now_event_5"
printf "$now_event_6"
printf "$now_event_7"
printf "$now_event_8"
printf "$now_event_9"
printf "$now_event_10"
printf "$now_event_11"
printf "$now_event_12"
printf "$now_event_13"
printf "$now_event_14"
printf "$now_event_15"
printf "$now_event_16"
printf "$now_event_17"
printf "$now_event_18"
printf "$now_event_19"
printf "$now_event_20"
printf "$now_event_21"
printf "$now_event_22"
printf "$now_event_23"
printf "$now_event_24"
printf "$now_event_25"
exit 0