dotfiles

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

commit 59e75ddcf3d065f57ac0c0c535a3ecfc0b609e5b
parent 5bbd5b305a67b60a804e7c3be0810f46ff2eb75d
Author: regexghost <dev@regexghost.com>
Date:   Mon, 10 Aug 2026 21:11:09 +0100

show-image newsraft improvements, init.sh changes, vi aliased to vim

Diffstat:
Mdotfiles/.config/newsraft/extract-thumbnail.sh | 2++
Mdotfiles/.config/newsraft/show-image.sh | 2+-
Mdotfiles/.kshrc | 1+
Minit.sh | 5+----
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dotfiles/.config/newsraft/extract-thumbnail.sh b/dotfiles/.config/newsraft/extract-thumbnail.sh @@ -8,6 +8,8 @@ if echo "$video_id" | grep -q "www."; then video_id=$(echo "$URL" | sed 's/.*\/shorts\///g') elif echo "$video_id" | grep -q "youtu.be"; then video_id="$(echo "$URL" | sed 's/.*youtu.be\///g')" +elif echo "$video_id" | grep -q "youtube.com/shorts"; then + video_id="$(echo "$URL" | sed 's/.*youtube.com\/shorts\///g')" fi video_id="$(echo "$video_id" | sed 's/?.*//g')" diff --git a/dotfiles/.config/newsraft/show-image.sh b/dotfiles/.config/newsraft/show-image.sh @@ -1,6 +1,6 @@ #!/bin/sh -if echo "$1" | grep -q -e "youtube" -e "youtu.be"; then +if echo "$1" | grep -q -e "youtube" -e "youtu.be" -e youtube.com/shorts; then ~/.config/newsraft/extract-thumbnail.sh "$1" ${IMAGE_VIEWER:-feh} /tmp/youtube_thumbnail.webp rm -f /tmp/youtube_thumbnail.webp diff --git a/dotfiles/.kshrc b/dotfiles/.kshrc @@ -162,6 +162,7 @@ qfi () { # Moving config out of ~/ alias vim='vim -u ~/.config/vim/vimrc -i ~/.config/vim/viminfo' +alias vi='vim' alias v='vim' # By default only show broadly useful info diff --git a/init.sh b/init.sh @@ -32,9 +32,6 @@ cd helpers/subgo/; make full; cd ../../ ./otherPrograms.sh mine ./otherPrograms.sh notmine -# Create empty wgetrc to stop error -touch ~/.config/wgetrc - # Shell stuff if ! grep -q "/usr/local/bin/oksh" /etc/shells; then cp /etc/shells ~/Downloads/shells_backup @@ -81,5 +78,5 @@ magick -background none -fill white -density 400 /tmp/temp.svg -resize 100x100 ~ sudo apt remove intel-media-va-driver # Put chromium data in ~/.local/share -mkdir ~/.local/share/chromium +[ -d ~/.config/chromium ] && mv ~/.config/chromium ~/.local/share/chromium || mkdir ~/.local/share/chromium ln -sf ~/.local/share/chromium ~/.config/chromium