dotfiles

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

commit 070230671090fc889aafd6e1958d5f17da16eb96
parent 15be5d418cee9b108bad8fdaba534388d841e47a
Author: regexghost <dev@regexghost.com>
Date:   Sun, 19 Jul 2026 16:04:58 +0100

hashing files in backup.sh, new oksh patch in otherPrograms.sh

Diffstat:
MotherPrograms.sh | 2++
Mterminal-scripts/backup.sh | 8++++++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/otherPrograms.sh b/otherPrograms.sh @@ -129,8 +129,10 @@ oksh () { cd */ cp ../../patches/oksh-case-insensitive.diff . cp ../../patches/oksh-history.diff . + cp ../../patches/oksh-ctrl-backspace-delete.diff . patch < oksh-case-insensitive.diff patch < oksh-history.diff + patch < oksh-ctrl-backspace-delete.diff ./configure make sudo make install diff --git a/terminal-scripts/backup.sh b/terminal-scripts/backup.sh @@ -19,4 +19,12 @@ elif [ "$1" = "make" ]; then date +"%y-%m-%d" >> "$XDG_DATA_HOME/regexghost/script-data/backup-history.txt" rsync -ar --links --delete --info=progress2 "${BACKUP_LOCATION}/latest/" "${BACKUP_LOCATION}/previous/" rsync -ar --links --delete --info=progress2 --files-from="${BACKUP_FILE}" "$HOME" "${BACKUP_LOCATION}/latest/" + hashFile="${BACKUP_LOCATION}/hashes/$(date +"%y%m%d").txt" + while read -r thing; do + echo "Hashing: ${HOME}${thing}" + [ -f "${HOME}${thing}" ] && sha256sum "${HOME}${thing}" >> "$hashFile" + [ -d "${HOME}${thing}" ] && hashfolder "${HOME}${thing}" >> "$hashFile" + done <<EOF +$(cat "$BACKUP_FILE") +EOF fi