dotfiles

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

commit b2d37a1974ae15443d25bd50974768b990ea5b95
parent 3091b2bf93818767cfa76eb7d9db829cc70f59f9
Author: regexghost <dev@regexghost.com>
Date:   Thu, 30 Jul 2026 21:35:56 +0100

bug fix in files.sh, firefox redirector update and removed old reddit redirect, other changes and bug fixes

Diffstat:
Mdotfiles/.kshrc | 5+----
Mguides/firefox.md | 1-
Mother/redirector-config.json | 19++++++++++++++++++-
Mterminal-scripts/directory-bookmarks.c | 2+-
Mterminal-scripts/download-pods.sh | 5+++--
Mterminal-scripts/files.sh | 6++----
6 files changed, 25 insertions(+), 13 deletions(-)

diff --git a/dotfiles/.kshrc b/dotfiles/.kshrc @@ -298,7 +298,6 @@ alias edit-bookmarks='${VISUAL:${EDITOR:-vi}} ~/.local/share/regexghost/script-d # Load my other aliases and functions -#. "$HOME/.local/share/regexghost/terminal/autocompletion.sh" . "$HOME/.local/share/regexghost/terminal/ls_aliases.sh" [ -f ~/Programs/localStuff/aliases.sh ] && . ~/Programs/localStuff/aliases.sh [ -f ~/.profile ] && . ~/.profile @@ -308,13 +307,11 @@ alias edit-bookmarks='${VISUAL:${EDITOR:-vi}} ~/.local/share/regexghost/script-d export HISTSIZE=100000 export HISTFILESIZE=100000 export HISTFILE="$HOME/.history" - export HISTCONTROL=ignoredups:erasedups + export MICRO_TRUECOLOR=1 export PASSWORD_STORE_CLIP_TIME=120 -#set +o emacs - # Quick file/directory access alias doc='cd ~/Documents/' diff --git a/guides/firefox.md b/guides/firefox.md @@ -8,7 +8,6 @@ https://getindie.wiki/ https://addons.mozilla.org/en-GB/firefox/addon/videospeed/ https://addons.mozilla.org/en-GB/firefox/addon/ublacklist/ https://addons.mozilla.org/en-GB/firefox/addon/imgur-unblock-via-imgup-uk/ -https://addons.mozilla.org/en-GB/firefox/addon/old-reddit-redirect/ https://addons.mozilla.org/en-US/firefox/addon/redirector/ https://addons.mozilla.org/en-GB/firefox/addon/vimium-ff/ diff --git a/other/redirector-config.json b/other/redirector-config.json @@ -1,6 +1,6 @@ { "createdBy": "Redirector v3.5.3", - "createdAt": "2026-07-27T20:06:20.261Z", + "createdAt": "2026-07-30T20:35:20.985Z", "redirects": [ { "description": "Wikipedia Vector Skin", @@ -18,6 +18,23 @@ "appliesTo": [ "main_frame" ] + }, + { + "description": "old reddit redirect", + "exampleUrl": "https://www.reddit.com/r/buildapc", + "exampleResult": "https://old.reddit.com/r/buildapc", + "error": null, + "includePattern": "https://www.reddit.com/*", + "excludePattern": "", + "patternDesc": "", + "redirectUrl": "https://old.reddit.com/$1", + "patternType": "W", + "processMatches": "noProcessing", + "disabled": false, + "grouped": false, + "appliesTo": [ + "main_frame" + ] } ] } \ No newline at end of file diff --git a/terminal-scripts/directory-bookmarks.c b/terminal-scripts/directory-bookmarks.c @@ -202,7 +202,7 @@ void bookmark_for_current_dir() { char cwd[PATH_MAX] = {0}; if (getcwd(cwd, sizeof(cwd)) == NULL) { - printf("Error, unable to get current directory\n"); + printf("-(error)"); return; } diff --git a/terminal-scripts/download-pods.sh b/terminal-scripts/download-pods.sh @@ -16,8 +16,9 @@ while read -r podcast_file; do exit fi - filename="$(mediainfo /tmp/out.mp3 | grep -e "Track name" -e "Album" | sed 's/Track name/Trackname/g' | tr -s " " | cut -d " " -f 3- | tr "\n" "+" | sed 's/[+]/ - /g' | sed 's/ - $//g').mp3" - mv /tmp/out.mp3 "${LOC}/${filename}" + filename="$(mediainfo /tmp/out.mp3 | grep -e "Track name" -e "Album" | sed 's/Track name/Trackname/g' | tr -s " " | cut -d " " -f 3- | tr "\n" "+" | sed 's/[+]/ - /g' | sed 's/ - $//g')" + [ "$filename" = "" ] && filename="$(date +"%y-%m-%d-%H-%M-%S")" + mv /tmp/out.mp3 "${LOC}/${filename}.mp3" grep -v "$podcast_file" /tmp/toDownload.txt > /tmp/toDownload.txt.tmp mv /tmp/toDownload.txt.tmp /tmp/toDownload.txt done < "$queueFile" diff --git a/terminal-scripts/files.sh b/terminal-scripts/files.sh @@ -1,6 +1,4 @@ #!/bin/sh -export NNN_FIFO=/tmp/nnn.fifo -export NNN_PLUG=v:preview-tui -tmux new-session -d -s mys "nnn -P v" -tmux attach +tmux new-session -d -s mys "NNN_FIFO=/tmp/nnn.fifo NNN_PLUG=v:preview-tui nnn -P v" +tmux attach -t mys