commit 54b613f7e65a3bdb55234cc1329890b0804003a8
parent 163367eceb8448691a72d138ad14543f2201a8e5
Author: regexghost <dev@regexghost.com>
Date: Wed, 5 Aug 2026 17:02:28 +0100
minor script changes, force /usr/bin in ls_aliases find and du, and fix images broken by redirector config by being more specific (now 3 rules, r/ u/ and user/)
Diffstat:
4 files changed, 53 insertions(+), 18 deletions(-)
diff --git a/dotfiles/.kshrc b/dotfiles/.kshrc
@@ -157,7 +157,8 @@ qfi () {
}
# Moving config out of ~/
-alias v='vim -u ~/.config/vim/vimrc -i ~/.config/vim/viminfo'
+alias vim='vim -u ~/.config/vim/vimrc -i ~/.config/vim/viminfo'
+alias v='vim'
# By default only show broadly useful info
lsblk () {
diff --git a/helpers/subgo/sub.go b/helpers/subgo/sub.go
@@ -51,13 +51,13 @@ func hashLines(lines []string) string {
func hashFile(filepath string) string {
hash := sha256.New()
-
+
file, err := os.Open(filepath)
panicIfErr(err)
-
+
_, err = io.Copy(hash, file)
panicIfErr(err)
-
+
return hex.EncodeToString(hash.Sum(nil))
}
@@ -170,7 +170,7 @@ func extractZones(lines []string) ([]SubZone) {
func newSubs(paths Paths) {
lines := fileParse(paths.InputFilepath)
zones := extractZones(lines)
-
+
for _, zone := range zones {
match := false
hash := zone.CurrentInstance.Hash
@@ -182,7 +182,7 @@ func newSubs(paths Paths) {
break
}
}
-
+
// If we get a match don't save again
if !match {
newSub(paths, zone, relevantInstances)
@@ -271,7 +271,7 @@ func main() {
SubsDir: os.Args[3],
TrueName: os.Args[2],
}
-
+
if command == "save" {
newSubs(paths)
} else if command == "clean" {
diff --git a/other/ls_aliases.sh b/other/ls_aliases.sh
@@ -53,14 +53,14 @@ alias lcda='ls -d */ .*/ | wc -l'
### Recursive
-alias lcr="find . -not -path '*/[@.]*' -type f | wc -l"
-alias lcra="find . -type f | wc -l"
-alias lcdr="find . -not -path '*/[@.]*' -type d | wc -l"
-alias lcdra="find . -type d | wc -l"
+alias lcr="/usr/bin/find . -not -path '*/[@.]*' -type f | wc -l"
+alias lcra="/usr/bin/find . -type f | wc -l"
+alias lcdr="/usr/bin/find . -not -path '*/[@.]*' -type d | wc -l"
+alias lcdra="/usr/bin/find . -type d | wc -l"
## File Sizes
-alias ldu='du -Sh --exclude "./.*" | tail -n 1'
-alias ldua='du -Sh | tail -n 1'
-alias ldur='du -h --exclude "./.*" | tail -n 1'
-alias ldura='du -h | tail -n 1'
+alias ldu='/usr/bin/du -Sh --exclude "./.*" | tail -n 1'
+alias ldua='/usr/bin/du -Sh | tail -n 1'
+alias ldur='/usr/bin/du -h --exclude "./.*" | tail -n 1'
+alias ldura='/usr/bin/du -h | tail -n 1'
diff --git a/other/redirector-config.json b/other/redirector-config.json
@@ -1,6 +1,6 @@
{
"createdBy": "Redirector v3.5.3",
- "createdAt": "2026-07-30T20:35:20.985Z",
+ "createdAt": "2026-08-05T16:01:31.771Z",
"redirects": [
{
"description": "Wikipedia Vector Skin",
@@ -24,10 +24,44 @@
"exampleUrl": "https://www.reddit.com/r/buildapc",
"exampleResult": "https://old.reddit.com/r/buildapc",
"error": null,
- "includePattern": "https://www.reddit.com/*",
+ "includePattern": "https://www.reddit.com/r/*",
"excludePattern": "",
"patternDesc": "",
- "redirectUrl": "https://old.reddit.com/$1",
+ "redirectUrl": "https://old.reddit.com/r/$1",
+ "patternType": "W",
+ "processMatches": "noProcessing",
+ "disabled": false,
+ "grouped": false,
+ "appliesTo": [
+ "main_frame"
+ ]
+ },
+ {
+ "description": "old reddit redirect",
+ "exampleUrl": "https://www.reddit.com/user/example",
+ "exampleResult": "https://old.reddit.com/user/example",
+ "error": null,
+ "includePattern": "https://www.reddit.com/user/*",
+ "excludePattern": "",
+ "patternDesc": "",
+ "redirectUrl": "https://old.reddit.com/user/$1",
+ "patternType": "W",
+ "processMatches": "noProcessing",
+ "disabled": false,
+ "grouped": false,
+ "appliesTo": [
+ "main_frame"
+ ]
+ },
+ {
+ "description": "old reddit redirect",
+ "exampleUrl": "https://www.reddit.com/u/example",
+ "exampleResult": "https://old.reddit.com/u/example",
+ "error": null,
+ "includePattern": "https://www.reddit.com/u/*",
+ "excludePattern": "",
+ "patternDesc": "",
+ "redirectUrl": "https://old.reddit.com/u/$1",
"patternType": "W",
"processMatches": "noProcessing",
"disabled": false,