dotfiles

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

commit 5606cf2a40cd7ac187fa445d07a12ced2d791c85
parent daad00483dbbf4c09ce7b81cabe796c45a909f92
Author: regexghost <dev@regexghost.com>
Date:   Wed,  8 Jul 2026 18:30:24 +0100

a bunch of symlink stuff, using for music playlists for example

Diffstat:
Mdotfiles/.kshrc | 2++
Mterminal-scripts/backup.sh | 4++--
Mterminal-scripts/iphone-music-sync.sh | 2+-
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dotfiles/.kshrc b/dotfiles/.kshrc @@ -46,6 +46,7 @@ alias trash-size='du ~/.local/share/Trash/files/ -s -h | cut -f 1' alias sync='echo "Syncing"; sync; echo "Done"; lsblk' alias alpine='alpine -p ~/.config/alpine/pinerc -passfile ~/.config/alpine/pine-passfile' alias man='MANWIDTH=$(($(stty size | cut -d " " -f 2)-20)) man' +alias cl='ln -si' # Not POSIX compliant grepc () { @@ -86,6 +87,7 @@ alias wp='feh --bg-fill --no-fehbg ~/.config/regexghost/wallpaper.jpg' alias capture-window='echo "Focus window to capture" && sleep 1 && id="$(xdotool getactivewindow)" && echo "Got id" && sleep 1 && import -frame -window "$id"' alias da='download-vids && download-pods' alias wb='~/Programs/websites/personal-website/scripts/build.sh' +alias sshr='ssh racknerd' # Bug todo diff --git a/terminal-scripts/backup.sh b/terminal-scripts/backup.sh @@ -16,6 +16,6 @@ elif [ "$1" = "remove" ] || [ "$1" = "rm" ]; then elif [ "$1" = "ls" ]; then cat "$BACKUP_FILE" | sed 's/^/~/g' elif [ "$1" = "make" ]; then - rsync -ar --delete --info=progress2 "${BACKUP_LOCATION}/latest/" "${BACKUP_LOCATION}/previous/" - rsync -ar --delete --info=progress2 --files-from="${BACKUP_FILE}" "$HOME" "${BACKUP_LOCATION}/latest/" + 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/" fi diff --git a/terminal-scripts/iphone-music-sync.sh b/terminal-scripts/iphone-music-sync.sh @@ -30,7 +30,7 @@ while read -r line; do phone="$(echo "$line" | cut -d "," -f 2)" echo "${local} -> ${phone}" [ -d "${MOUNT_LOCATION}/${phone}" ] || mkdir "${MOUNT_LOCATION}/${phone}" - rsync -vr --update --delete --modify-window=1 --info=progress2 "${HOME}/Music/${local}/" "${MOUNT_LOCATION}/${phone}/" + rsync -vr --copy-links --update --delete --modify-window=1 --info=progress2 "${HOME}/Music/${local}/" "${MOUNT_LOCATION}/${phone}/" find ~/Music/"${local}/" -type f | sort | sed "s|.*${local}/|../${phone}/|g" > "/tmp/${phone}.m3u8" cp "/tmp/${phone}.m3u8" "${MOUNT_LOCATION}/Playlists/" done < "$XDG_CONFIG_HOME/regexghost/playlists-phone-sync.csv"