made my yt playlist dir a env var
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user