dotfiles

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

commit 6582893924dd4f04e257bf1db3d41ce0a8c2eed9
parent 54b613f7e65a3bdb55234cc1329890b0804003a8
Author: regexghost <dev@regexghost.com>
Date:   Wed,  5 Aug 2026 20:54:43 +0100

redirector config descriptions update, new ublock origin filters, moved comment from codeberg to sourcehut in github-latest-relase.sh and fix for mymv.sh

Diffstat:
Mother/redirector-config.json | 8++++----
Mother/ublock-filters.txt | 6++++++
Mterminal-scripts/github-latest-release.sh | 2+-
Mterminal-scripts/mymv.sh | 8+++++---
4 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/other/redirector-config.json b/other/redirector-config.json @@ -1,6 +1,6 @@ { "createdBy": "Redirector v3.5.3", - "createdAt": "2026-08-05T16:01:31.771Z", + "createdAt": "2026-08-05T18:33:48.940Z", "redirects": [ { "description": "Wikipedia Vector Skin", @@ -20,7 +20,7 @@ ] }, { - "description": "old reddit redirect", + "description": "old reddit redirect (r)", "exampleUrl": "https://www.reddit.com/r/buildapc", "exampleResult": "https://old.reddit.com/r/buildapc", "error": null, @@ -37,7 +37,7 @@ ] }, { - "description": "old reddit redirect", + "description": "old reddit redirect (user)", "exampleUrl": "https://www.reddit.com/user/example", "exampleResult": "https://old.reddit.com/user/example", "error": null, @@ -54,7 +54,7 @@ ] }, { - "description": "old reddit redirect", + "description": "old reddit redirect (u)", "exampleUrl": "https://www.reddit.com/u/example", "exampleResult": "https://old.reddit.com/u/example", "error": null, diff --git a/other/ublock-filters.txt b/other/ublock-filters.txt @@ -5,3 +5,9 @@ www.google.com###oFNiHe ! 30 Jul 2026 https://old.reddit.com old.reddit.com##.cookie-infobar.with-btn.with-icon.updated.md-container-small.reddit-infobar + +! https://old.reddit.com/r/uBlockOrigin/comments/y2op8t/how_to_remove_youtubes_new_ambient_background/iu0mt77/ +youtube.com###cinematics.ytd-watch-flexy + +! 5 Aug 2026 https://www.decathlon.co.uk +www.decathlon.co.uk##.banner diff --git a/terminal-scripts/github-latest-release.sh b/terminal-scripts/github-latest-release.sh @@ -8,10 +8,10 @@ if [[ "$site" == "github" ]] || [[ "$site" == "gh" ]]; then latest_tag=$(curl -w "%{redirect_url}" https://github.com/${user_name}/${repo_name}/releases/latest/ | sed 's/.*\///g') echo https://github.com/${user_name}/${repo_name}/archive/refs/tags/${latest_tag}.zip elif [[ "$site" == "codeberg" ]] || [[ "$site" == "cb" ]]; then - # Sometimes this doesn't work due to browser checks latest_tag=$(curl -w "%{redirect_url}" https://codeberg.org/${user_name}/${repo_name}/releases/latest/ | sed -nE 's/.*tag\/([^"]*)">.*/\1/p') echo https://codeberg.org/${user_name}/${repo_name}/archive/${latest_tag}.zip elif [[ "$site" == "sourcehut" ]] || [[ "$site" == "srht" ]]; then + # Sometimes this doesn't work due to browser checks latest_tag=$(curl "https://git.sr.ht/${user_name}/${repo_name}" | grep "/refs/" | cut -d "/" -f 5 | cut -d "\"" -f 1) echo "https://git.sr.ht/${user_name}/${repo_name}/archive/${latest_tag}.zip" fi diff --git a/terminal-scripts/mymv.sh b/terminal-scripts/mymv.sh @@ -3,14 +3,16 @@ # Wrapper for mv as suckless sbase doesn't have `mv -i` if [ "$#" -eq 2 ]; then - if [ -f "$2" ]; then + file="$2" + [ -d "$file" ] && file="${2}/$(basename "$1")" + if [ -f "$file" ]; then read -p "Overwrite existing file? (y/N) " yesOrNo if [ "$yesOrNo" = "y" ] || [ "$yesOrNo" = "Y" ]; then - mv "$1" "$2" + mv "$1" "$file" fi exit else - mv "$1" "$2" + mv "$1" "$file" fi else mv "$@"