Lab is ready

This commit is contained in:
Chris
2022-03-09 17:43:06 -05:00
parent 05ed95fb65
commit 729b179d43
7 changed files with 317 additions and 1 deletions

13
globalize_weather.sh Normal file
View File

@@ -0,0 +1,13 @@
# This shell shell script adds `weather` to your global PATH, so that you'll be able to
# run it from any Terminal session. If you want this, just run:
#
# source globalize_weather.sh
CHECK=$(which weather 2>&1)
if [ $CHECK = "weather not found" ]; then
echo "The weather script was not found. Make sure you are in a Poetry shell and that you have run poetry install."
else
echo "\n# Adding path for weather" >> ~/.mwc_rc
echo "export PATH=\"$(dirname $(which weather)):\$PATH\"" >> ~/.mwc_rc
source ~/.mwc_rc
fi