aboutsummaryrefslogtreecommitdiff
path: root/runs-all
diff options
context:
space:
mode:
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