diff options
author | Matthew Lemon <y@yulqen.org> | 2024-02-04 18:21:20 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-02-04 18:21:20 +0000 |
commit | 73daaf08a0dc620237a6c8998cfff1a8781cbc50 (patch) | |
tree | a32c5e799a21b23c534a43ebe8182b1a4c194283 /fish2024 | |
parent | 88b835fb2b387aed85845bec83c1618c2ae9bc0a (diff) |
Adds rudimentary fish function for getting meal of the day from mealplan
Diffstat (limited to 'fish2024')
-rw-r--r-- | fish2024/functions/breakfast.fish | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fish2024/functions/breakfast.fish b/fish2024/functions/breakfast.fish new file mode 100644 index 0000000..638e001 --- /dev/null +++ b/fish2024/functions/breakfast.fish @@ -0,0 +1,13 @@ +function breakfast + #set -l cmd "grep Monday ~/Documents/Notes/2.Areas/Health/Breakfast_and_Lunch_Plan_IBD.md|cut -d: -f3" + set -l day $argv[1] + + if test $argv[2] = "b" + set -f meal "-f2" + else if test $argv[2] = "l" + set -f meal "-f3" + else if test $argv[2] = "t" + set -f meal "-f4" + end + echo (grep -i $day ~/Documents/Notes/2.Areas/Health/Breakfast_and_Lunch_Plan_IBD.md|cut -d: $meal) +end |