This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
2023-05-17 09:53:26 -05:00
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
|
|
|
# create a messages file for subscripts to write to or manipulate for ending
|
|
|
|
# output
|
|
|
|
set message_file (mktemp)
|
|
|
|
|
|
|
|
for f in (fd good-morning.d.fish $HOME/.config/lytedev-env --max-depth 2)
|
2023-05-17 10:12:41 -05:00
|
|
|
# run scripts for any linked environments with a hooked script
|
|
|
|
source $f $message_file
|
2023-05-17 09:53:26 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# output the messages file's contents
|
|
|
|
echo
|
|
|
|
cat $message_file
|
|
|
|
echo
|
|
|
|
|
|
|
|
# since this script almost always runs in its own window which dies after
|
|
|
|
# finishing, give the user a chance to read the output
|
|
|
|
echo "When you're ready, hit enter to finish!"
|
|
|
|
read
|