made my yt playlist dir a env var

This commit is contained in:
2025-06-01 22:19:29 -05:00
parent 1531d84d91
commit 354a2abbcd
6 changed files with 20 additions and 12 deletions

View File

@@ -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