dotfiles

regexghost dotfiles and scripts
git clone https://git.regexghost.com/dotfiles.git
Log | Files | Refs | README

commit 0d5f9874eae646ea6e97b1b3b0f11f28bda481c5
parent c96a75b379c44caf375309c33290a65c04aba39a
Author: regexghost <dev@regexghost.com>
Date:   Fri, 28 Aug 2026 18:55:32 +0100

option to delete/un-queue vids with - in download-vids.sh, ppsspp retroarch core

Diffstat:
Mretroarch-setup/compile-cores.sh | 8++++++++
Mterminal-scripts/download-vids.sh | 22+++++++++++++++++++---
2 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/retroarch-setup/compile-cores.sh b/retroarch-setup/compile-cores.sh @@ -62,6 +62,13 @@ cp libretro-smsplus/smsplus_libretro.so "${CONFIG_LOC}/cores/" read -p "q to quit if errors" quit [ "$quit" = "q" ] && exit +./libretro-fetch.sh ppsspp +JOBS=1 ./libretro-build.sh ppsspp +cp libretro-ppsspp/build/lib/ppsspp_libretro.so "${CONFIG_LOC}/cores/" + +read -p "q to quit if errors" quit +[ "$quit" = "q" ] && exit + ./libretro-install.sh infofiles cp infofiles/picodrive_libretro.info "${CONFIG_LOC}/cores/" cp infofiles/nestopia_libretro.info "${CONFIG_LOC}/cores/" @@ -71,5 +78,6 @@ cp infofiles/mgba_libretro.info "${CONFIG_LOC}/cores/" cp infofiles/gpsp_libretro.info "${CONFIG_LOC}/cores/" cp infofiles/fceumm_libretro.info "${CONFIG_LOC}/cores/" cp infofiles/smsplus_libretro.info "${CONFIG_LOC}/cores/" +cp infofiles/ppsspp_libretro.info "${CONFIG_LOC}/cores/" cd .. cd .. diff --git a/terminal-scripts/download-vids.sh b/terminal-scripts/download-vids.sh @@ -27,9 +27,10 @@ done <<EOF $(find "$targetDir/Shorts" "$targetDir/Videos" -type f | sort) EOF -read -p "Select videos to download (e.g. 1 2 3): " toDownload +read -p "Select videos to download/delete (e.g. 1 2 -3): " toDownload [ -f /tmp/to_download ] && rm /tmp/to_download +[ -f /tmp/to_delete ] && rm /tmp/to_delete [ "$toDownload" = "" ] && exit @@ -37,11 +38,26 @@ if [ "$toDownload" = "a" ] || [ "$toDownload" = "all" ]; then find "$targetDir/Shorts" "$targetDir/Videos" -type f | sort >> /tmp/to_download else for i in $toDownload; do - path="$(find "$targetDir/Shorts" "$targetDir/Videos" -type f | sort | sed -n "${i}p")" - echo "$path" >> /tmp/to_download + index="$(echo "$i" | sed 's/^-//g')" + path="$(find "$targetDir/Shorts" "$targetDir/Videos" -type f | sort | sed -n "${index}p")" + if [ "$(echo "$i" | cut -c 1)" = "-" ]; then + echo "$path" >> /tmp/to_delete + else + echo "$path" >> /tmp/to_download + fi done fi +if [ -f /tmp/to_delete ]; then + while read -r path; do + rm "$path" + done <<EOF +$(cat /tmp/to_delete) +EOF +fi + +[ -f /tmp/to_download ] || exit + while read -r path; do id="$(basename "$path" | sed 's/.txt//g')" if echo "$path" | grep -q Shorts; then