Update

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2025-01-29 02:56:08 +0100
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2025-01-29 02:56:08 +0100
Commit e3079d374b77fc34c69148952d4993d76b0c818f (patch)
-rwxr-xr-x .shenanigans.sh 21
1 files changed, 9 insertions, 12 deletions
diff --git a/.shenanigans.sh b/.shenanigans.sh
  
1
# Software list:
  
2
# build-essential git gcc make cmake busybox cifs-utils tree hstr
  
3
# s3cmd xmlstarlet htop nvtop tmux scrot xclip mc ripgrep jq
  
4
# rsync entr clang clang-tidy clang-tools clangd pulseaudio-utils
  
5
# libx11-dev libxinerama-dev libxft-dev x11-xserver-utils
  
6
# stow podman podman-compose curl vim xxd
  
7
  
1
# Magical environment variables.
8
# Magical environment variables.
2
export NIX_SHELL_PRESERVE_PROMPT=1
9
export NIX_SHELL_PRESERVE_PROMPT=1
3
export COLORTERM=truecolor
10
export COLORTERM=truecolor
...
57
export HSTR_CONFIG=hicolor
64
export HSTR_CONFIG=hicolor
58
if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi
65
if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi
59
  
66
  
60
# Machine provision script for essential software.
  
61
# This is meant to be used on Debian 11+.
  
62
provision() {
  
63
	doas apt install \
  
64
		build-essential git gcc make cmake busybox cifs-utils tree hstr \
  
65
		s3cmd xmlstarlet htop nvtop tmux scrot xclip mc ripgrep jq \
  
66
		rsync entr clang clang-tidy clang-tools pulseaudio-utils \
  
67
		libx11-dev libxinerama-dev libxft-dev x11-xserver-utils \
  
68
		stow podman podman-compose
  
69
}
  
70
  
  
71
# Backup to NAS function. Much wow!
67
# Backup to NAS function. Much wow!
72
backup() {
68
backup() {
73
	CWD=$(pwd)
69
	CWD=$(pwd)
...
83
  
79
  
84
	# WoW settings and addons.
80
	# WoW settings and addons.
85
	cd $VHOME
81
	cd $VHOME
86
	rsync -azhv /home/$USER/Games/turtlewow .
82
	rsync -azhv /home/$USER/Games/turtlewow/WTF turtlewow
  
83
	rsync -azhv /home/$USER/Games/turtlewow/start.sh turtlewow/
87
  
84
  
88
	# Sync with NAS.
85
	# Sync with NAS.
89
	rsync -azhvpog \
86
	rsync -azhvpog \
...