dotfiles

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

commit daad00483dbbf4c09ce7b81cabe796c45a909f92
parent bc36148dc28d9bbc49416ba337fe90951d46cd2a
Author: regexghost <dev@regexghost.com>
Date:   Wed,  8 Jul 2026 17:44:03 +0100

backuphistory function, sourcehut in github_latest_release and other minor changes

Diffstat:
Mapt-install.sh | 2+-
Mdotfiles/.kshrc | 8++++++++
Mguides/firefox.md | 1+
Minit.sh | 2++
Mterminal-scripts/github_latest_release.sh | 3+++
5 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/apt-install.sh b/apt-install.sh @@ -1,3 +1,3 @@ #!/bin/sh -sudo apt install curl wget golang xorg xinit x11-xserver-utils bluetooth unzip git firefox mpv vlc tar moc fasd fonts-roboto fonts-firacode figlet jq xcompmgr picom trash-cli ncdu pulsemixer feh moc-ffmpeg-plugin keepassxc-full fzf libnotify-bin dunst texinfo xmlstarlet duf gh tidy w3m bluetooth xclip wbritish wbritish-huge rsync pup rename +sudo apt install curl wget golang xorg xinit x11-xserver-utils bluetooth unzip git firefox mpv vlc tar moc fasd fonts-roboto fonts-firacode figlet jq xcompmgr picom trash-cli ncdu pulsemixer feh moc-ffmpeg-plugin keepassxc-full fzf libnotify-bin dunst texinfo xmlstarlet duf gh tidy w3m bluetooth xclip wbritish wbritish-huge rsync pup rename ifuse libimobiledevice-utils chromium groff zathura zathura-pdf-poppler zathura-ps diff --git a/dotfiles/.kshrc b/dotfiles/.kshrc @@ -174,6 +174,14 @@ trash-empty () { /usr/bin/trash-empty } +backuphistory () { + wc -l ~/.history + read yesOrNoBackup"?Backup? (y/N) " + if [ "$yesOrNoBackup" = "y" ] || [ "$yesOrNoBackup" = "Y" ]; then + cp ~/.history ~/Downloads/.history_backup + fi +} + # Only use this if the history in the current terminal is suddenly way shorter than it should be restorehistory () { history | sed 's/^[ ]*[0-9]*[ ]*//g' > /tmp/new_history diff --git a/guides/firefox.md b/guides/firefox.md @@ -8,6 +8,7 @@ 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/ ## Login diff --git a/init.sh b/init.sh @@ -27,3 +27,5 @@ chsh # Random setup echo "50" > ~/.cache/volume echo "no" > ~/.cache/muted +mkdir ~/.config/aspell +mkdir ~/.local/share/aspell diff --git a/terminal-scripts/github_latest_release.sh b/terminal-scripts/github_latest_release.sh @@ -10,4 +10,7 @@ if [[ "$site" == "github" ]] || [[ "$site" == "gh" ]]; then elif [[ "$site" == "codeberg" ]] || [[ "$site" == "cb" ]]; then 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 + 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