diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-10-14 00:05:03 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-10-14 00:05:03 +0200 |
| commit | c2c1944b95d8c2f552040c017eb0e8222c582b2e (patch) | |
| tree | 065a0e45351b55e4d73ad890d2d5984e0642051f /shenanigans.sh | |
| parent | 80df573f1cdd47ae2eb8a4dca5e70cfe8419019b (diff) | |
| download | dotfiles-c2c1944b95d8c2f552040c017eb0e8222c582b2e.tar.gz | |
Cleanup and added script that creates symlinks
Diffstat (limited to 'shenanigans.sh')
| -rwxr-xr-x | shenanigans.sh | 31 |
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' | |||
| 36 | alias tmux='tmux -u' | 36 | alias tmux='tmux -u' |
| 37 | alias vi='vim' | 37 | alias vi='vim' |
| 38 | alias server='python3 -m http.server 6969' | 38 | alias server='python3 -m http.server 6969' |
| 39 | alias www='lynx -accept_all_cookies -scrollbar https://lite.duckduckgo.com' | ||
| 40 | alias 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 | ||
| 44 | alias p='cd ~/Vault/projects' | 42 | alias p='cd ~/Vault/projects' |
| 45 | alias n='cd ~/Vault/notes' | ||
| 46 | alias j='cd ~/Junk/current' | 43 | alias j='cd ~/Junk/current' |
| 47 | alias d='cd ~/Downloads' | 44 | alias d='cd ~/Downloads' |
| 48 | 45 | ||
| @@ -52,14 +49,6 @@ export PATH=$HOME/Applications:$PATH | |||
| 52 | export PATH=$HOME/go/bin:$PATH | 49 | export PATH=$HOME/go/bin:$PATH |
| 53 | export PATH=/usr/local/go/bin:$PATH | 50 | export PATH=/usr/local/go/bin:$PATH |
| 54 | 51 | ||
| 55 | # Zig paths. | ||
| 56 | export PATH=$HOME/.local/bin/zls-x86_64-linux-0.13.0:$PATH | ||
| 57 | export PATH=$HOME/.local/bin/zig-linux-x86_64-0.14.0-dev.1587+feaee2ba1:$PATH | ||
| 58 | |||
| 59 | # FZF settings. | ||
| 60 | |||
| 61 | export FZF_DEFAULT_COMMAND='rg --files --hidden' | ||
| 62 | |||
| 63 | # History and search. Stolen from J. | 52 | # History and search. Stolen from J. |
| 64 | 53 | ||
| 65 | HISTCONTROL=ignoreboth | 54 | HISTCONTROL=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 | ||
| 78 | wow() { | ||
| 79 | cd ~/Games/turtlewow/ | ||
| 80 | ./start.sh | ||
| 81 | } | ||
| 82 | |||
| 83 | backup() { | 67 | backup() { |
| 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/' \ |
