aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshenanigans.sh9
-rw-r--r--vimrc6
2 files changed, 9 insertions, 6 deletions
diff --git a/shenanigans.sh b/shenanigans.sh
index 4833bd2..d0a1cf4 100755
--- a/shenanigans.sh
+++ b/shenanigans.sh
@@ -42,6 +42,7 @@ alias server='python3 -m http.server 6969'
42alias p='cd ~/Vault/projects' 42alias p='cd ~/Vault/projects'
43alias j='cd ~/Junk/current' 43alias j='cd ~/Junk/current'
44alias d='cd ~/Downloads' 44alias d='cd ~/Downloads'
45alias s='cd ~/Sandbox'
45 46
46# Additional path settings. 47# Additional path settings.
47 48
@@ -64,6 +65,7 @@ if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi
64# Useful function. Much wow! 65# Useful function. Much wow!
65 66
66backup() { 67backup() {
68 CWD=$(pwd)
67 VHOME=/home/$USER/Vault 69 VHOME=/home/$USER/Vault
68 ME=$(whoami)@$(hostname) 70 ME=$(whoami)@$(hostname)
69 71
@@ -87,6 +89,9 @@ backup() {
87 dconf dump /com/gexperts/Tilix/ > tilix.dconf 89 dconf dump /com/gexperts/Tilix/ > tilix.dconf
88 # dconf load /com/gexperts/Tilix/ < tilix.dconf 90 # dconf load /com/gexperts/Tilix/ < tilix.dconf
89 91
92 find /home/$USER/Videos -type f -name "*.webm" -exec cp {} $VHOME/videos/ \;
93 find /home/$USER/Pictures -type f -name "*.png" -exec cp {} $VHOME/pictures/ \;
94
90 # Sync with NAS. 95 # Sync with NAS.
91 rsync -azv \ 96 rsync -azv \
92 --exclude '.venv/' \ 97 --exclude '.venv/' \
@@ -94,9 +99,13 @@ backup() {
94 --exclude '.import/' \ 99 --exclude '.import/' \
95 --exclude '.godot/' \ 100 --exclude '.godot/' \
96 --exclude 'node_modules/' \ 101 --exclude 'node_modules/' \
102 --exclude 'digg-v5/' \
97 --delete \ 103 --delete \
98 $VHOME/ /media/Void/Backup/$ME/ 104 $VHOME/ /media/Void/Backup/$ME/
99 105
100 # Add to log file. 106 # Add to log file.
101 echo `date +"%D %T"` >> ~/.vault.log 107 echo `date +"%D %T"` >> ~/.vault.log
108
109 # Return back to original directory
110 cd $CWD
102} 111}
diff --git a/vimrc b/vimrc
index c444e45..5621016 100644
--- a/vimrc
+++ b/vimrc
@@ -4,9 +4,6 @@ set nocompatible
4syntax enable 4syntax enable
5 5
6" Theme. 6" Theme.
7if has('vim')
8 colorscheme wildcharm
9endif
10set background=dark 7set background=dark
11hi Normal ctermbg=233 8hi Normal ctermbg=233
12 9
@@ -37,6 +34,3 @@ filetype plugin indent on
37autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 34autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4
38autocmd Filetype c,cpp,html,javascript,css,python setlocal expandtab tabstop=2 shiftwidth=2 35autocmd Filetype c,cpp,html,javascript,css,python setlocal expandtab tabstop=2 shiftwidth=2
39 36
40" Throwaway config.
41"au BufReadPost *.twig set syntax=html
42