aboutsummaryrefslogtreecommitdiff
path: root/shenanigans.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shenanigans.sh')
-rwxr-xr-xshenanigans.sh31
1 files changed, 1 insertions, 30 deletions
diff --git a/shenanigans.sh b/shenanigans.sh
index 13e73c9..a6777ab 100755
--- a/shenanigans.sh
+++ b/shenanigans.sh
@@ -1,5 +1,5 @@
1# Software list. 1# Software list.
2# cifs-utils treei tig hstr s3cmd xclip mc gnupg ripgrep jq xmlstarlet fzf htop nvtop newsboat tmux ctags 2# cifs-utils tree hstr s3cmd xclip mc gnupg ripgrep jq xmlstarlet htop nvtop newsboat tmux ctags
3 3
4# Magical environment variables. 4# Magical environment variables.
5 5
@@ -36,13 +36,10 @@ alias less='less -R'
36alias tmux='tmux -u' 36alias tmux='tmux -u'
37alias vi='vim' 37alias vi='vim'
38alias server='python3 -m http.server 6969' 38alias server='python3 -m http.server 6969'
39alias www='lynx -accept_all_cookies -scrollbar https://lite.duckduckgo.com'
40alias st='st -g 90x40 -f "BerkeleyMono:style=Bold:size=16:antialias=true:autohint:true"'
41 39
42# Custom folder jump commands. 40# Custom folder jump commands.
43 41
44alias p='cd ~/Vault/projects' 42alias p='cd ~/Vault/projects'
45alias n='cd ~/Vault/notes'
46alias j='cd ~/Junk/current' 43alias j='cd ~/Junk/current'
47alias d='cd ~/Downloads' 44alias d='cd ~/Downloads'
48 45
@@ -52,14 +49,6 @@ export PATH=$HOME/Applications:$PATH
52export PATH=$HOME/go/bin:$PATH 49export PATH=$HOME/go/bin:$PATH
53export PATH=/usr/local/go/bin:$PATH 50export PATH=/usr/local/go/bin:$PATH
54 51
55# Zig paths.
56export PATH=$HOME/.local/bin/zls-x86_64-linux-0.13.0:$PATH
57export PATH=$HOME/.local/bin/zig-linux-x86_64-0.14.0-dev.1587+feaee2ba1:$PATH
58
59# FZF settings.
60
61export FZF_DEFAULT_COMMAND='rg --files --hidden'
62
63# History and search. Stolen from J. 52# History and search. Stolen from J.
64 53
65HISTCONTROL=ignoreboth 54HISTCONTROL=ignoreboth
@@ -75,11 +64,6 @@ if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi
75 64
76# Useful function. Much wow! 65# Useful function. Much wow!
77 66
78wow() {
79 cd ~/Games/turtlewow/
80 ./start.sh
81}
82
83backup() { 67backup() {
84 CWD=$(pwd) 68 CWD=$(pwd)
85 VHOME=/home/$USER/Vault 69 VHOME=/home/$USER/Vault
@@ -91,11 +75,7 @@ backup() {
91 # Make a copy of dotfiles. 75 # Make a copy of dotfiles.
92 cp /home/$USER/.shenanigans.sh shenanigans.sh 76 cp /home/$USER/.shenanigans.sh shenanigans.sh
93 cp /home/$USER/.bash_history_infinite bash_history_infinite 77 cp /home/$USER/.bash_history_infinite bash_history_infinite
94 cp /home/$USER/.smbcredentials smbcredentials
95 cp /home/$USER/.gitconfig gitconfig 78 cp /home/$USER/.gitconfig gitconfig
96 cp /home/$USER/.vimrc vimrc
97 cp /home/$USER/.tmux.conf tmux.conf
98 cp /home/$USER/.config/helix/config.toml config.toml
99 cp /home/$USER/.newsboat/urls urls 79 cp /home/$USER/.newsboat/urls urls
100 cp /home/$USER/.newsboat/cache.db cache.db 80 cp /home/$USER/.newsboat/cache.db cache.db
101 81
@@ -105,15 +85,6 @@ backup() {
105 find /home/$USER/Videos -type f -name "*.webm" -exec cp -n {} $VHOME/videos/ \; 85 find /home/$USER/Videos -type f -name "*.webm" -exec cp -n {} $VHOME/videos/ \;
106 find /home/$USER/Pictures -type f -name "*.png" -exec cp -n {} $VHOME/pictures/ \; 86 find /home/$USER/Pictures -type f -name "*.png" -exec cp -n {} $VHOME/pictures/ \;
107 87
108 cp -Rf /home/$USER/Notebooks ./
109
110 mkdir ../twow
111 cp -Rf /home/$USER/Games/turtlewow/Interface ../twow
112 cp -Rf /home/$USER/Games/turtlewow/WTF ../twow
113 cp -Rf /home/$USER/Games/turtlewow/start.sh ../twow/
114 cp -Rf /home/$USER/Games/turtlewow/icon.png ../twow/
115 cp -Rf /home/$USER/Games/turtlewow/start.sh ../twow/
116
117 # Sync with NAS. 88 # Sync with NAS.
118 rsync -azv \ 89 rsync -azv \
119 --exclude '.venv/' \ 90 --exclude '.venv/' \