Update

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2025-07-02 17:58:15 +0200
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2025-07-02 17:58:15 +0200
Commit efae1a080e419f6b08c29ccf3b06092079b40c96 (patch)
-rwxr-xr-x .shenanigans.sh 26
1 files changed, 23 insertions, 3 deletions
diff --git a/.shenanigans.sh b/.shenanigans.sh
...
2
#   void-repo-nonfree void-repo-multilib void-repo-multilib-nonfree
2
#   void-repo-nonfree void-repo-multilib void-repo-multilib-nonfree
3
#   file-roller xfce4-screenshooter xfce4-plugins xsetroot thunar-archive-plugin
3
#   file-roller xfce4-screenshooter xfce4-plugins xsetroot thunar-archive-plugin
4
#   clang clang-tools-extra vim stow git curl tmux hstr tree make cmake
4
#   clang clang-tools-extra vim stow git curl tmux hstr tree make cmake
5
#   entr ack lazygit newsboat htop mc
5
#   entr ack lazygit newsboat htop mc mpv cifs-utils zip rsync
6
  
6
  
7
# Only run if the script is being sourced (bashrc).
7
# Only run if the script is being sourced (bashrc).
8
if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
8
if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
...
29
	alias tmux='tmux -u'
29
	alias tmux='tmux -u'
30
	alias server='python3 -m http.server 6969'
30
	alias server='python3 -m http.server 6969'
31
	alias newsboat='newsboat -r -u ~/.feeds.txt'
31
	alias newsboat='newsboat -r -u ~/.feeds.txt'
  
32
	alias wow='sh ~/Games/turtlewow/wow.sh &'
32
	alias ack='ack -S'
33
	alias ack='ack -S'
33
	alias gg='lazygit'
34
	alias gg='lazygit'
34
  
35
  
...
48
	bind '"\e[B": history-search-forward'
49
	bind '"\e[B": history-search-forward'
49
	export HSTR_CONFIG=hicolor
50
	export HSTR_CONFIG=hicolor
50
	if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi
51
	if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi
  
52
  
  
53
	# Custom paths.
  
54
	export PATH="$PATH:$HOME/.local/bin"
  
55
	export PATH="$PATH:$HOME/go/bin"
51
fi
56
fi
52
  
57
  
53
wow() {
58
backup() {
54
	cd ~/Games/turtlewow && ./wow.sh
59
	SNAPSHOT=$(date +%Y-%m-%d)-$(whoami)@$(hostname)
  
60
	mkdir -p /tmp/$SNAPSHOT
  
61
  
  
62
	archive_sets=(
  
63
		"ssh.zip /home/$USER/.ssh"
  
64
		"bash_history_infinite.zip /home/$USER/.bash_history_infinite"
  
65
		"projects.zip /home/$USER/Projects"
  
66
		"twow.zip /home/$USER/Games/turtlewow/WTF /home/$USER/Games/turtlewow/SuperWoWhook.dll /home/$USER/Games/turtlewow/dlls.txt /home/$USER/Games/turtlewow/start.sh"
  
67
	)
  
68
  
  
69
	for entry in "${archive_sets[@]}"; do
  
70
		zip -r /tmp/$SNAPSHOT/${entry} -x "**/.venv/*" "**/.git/*" "**/.import/*" "**/.godot/*" "**/.zig-cache/*" "**/node_modules/*"
  
71
	done
  
72
  
  
73
	rsync -azhvpog /tmp/$SNAPSHOT /media/Void/Backup
  
74
	rm -Rf /tmp/$SNAPSHOT
55
}
75
}