aboutsummaryrefslogtreecommitdiff
path: root/.shenanigans.sh
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-07-02 17:58:15 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-07-02 17:58:15 +0200
commitefae1a080e419f6b08c29ccf3b06092079b40c96 (patch)
tree1988adb97c6858341f683d5ff6b266e13bbcb647 /.shenanigans.sh
parent63cf241d930f6532b43e72a6317b516173f5e781 (diff)
downloaddotfiles-efae1a080e419f6b08c29ccf3b06092079b40c96.tar.gz
Update
Diffstat (limited to '.shenanigans.sh')
-rwxr-xr-x.shenanigans.sh26
1 files changed, 23 insertions, 3 deletions
diff --git a/.shenanigans.sh b/.shenanigans.sh
index ebb27de..df1cd13 100755
--- a/.shenanigans.sh
+++ b/.shenanigans.sh
@@ -2,7 +2,7 @@
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).
8if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then 8if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
@@ -29,6 +29,7 @@ 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,8 +49,27 @@ if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
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"
51fi 56fi
52 57
53wow() { 58backup() {
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}