aboutsummaryrefslogtreecommitdiff
path: root/runs-all
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2025-06-01 22:19:29 -0500
committericeyrazor <iceyrazor@mailfence.com>2025-06-01 22:19:29 -0500
commit354a2abbcd98775179aaba9d314dc0b500e2fb67 (patch)
tree62bdc9e8363fc3a20a04a123125b3cbf489fdcd2 /runs-all
parent1531d84d91059a812a86185651b82bffdf8cd521 (diff)
made my yt playlist dir a env var
Diffstat (limited to 'runs-all')
-rwxr-xr-xruns-all/env.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/runs-all/env.sh b/runs-all/env.sh
index 744e0de..fc2f99f 100755
--- a/runs-all/env.sh
+++ b/runs-all/env.sh
@@ -14,15 +14,20 @@ else
export PATH=""
source /etc/profile
paths="$PATH"
+ yt_cli_dir="$(find ~/stuff/scripts/**/youtube-playlist-cli -maxdepth 0 -type d)"
+
path_dirs="$path_dirs
+$yt_cli_dir
$(find ~/stuff/scripts/**/theme-setter -maxdepth 0 -type d)
-$(find ~/stuff/scripts/**/youtube-playlist-cli -maxdepth 0 -type d)
$(find ~/stuff/scripts/system -maxdepth 2 -type d)"
+
for s in $path_dirs; do
echo "adding $s to path"
paths="$paths:$s"
done
+
echo "export PATH=\"$paths:\"" > "$DEV_ENV/.local/bin/system/paths.sh"
+ echo "export YT_PLAYLIST_DIR=\"$yt_cli_dir\"" >> "$DEV_ENV/.local/bin/system/paths.sh"
chmod u+x "$DEV_ENV/.local/bin/system/paths.sh"
fi