|
diff --git a/shenanigans.sh b/shenanigans.sh
|
| ... |
| 42 |
alias p='cd ~/Vault/projects' |
42 |
alias p='cd ~/Vault/projects' |
| 43 |
alias j='cd ~/Junk/current' |
43 |
alias j='cd ~/Junk/current' |
| 44 |
alias d='cd ~/Downloads' |
44 |
alias d='cd ~/Downloads' |
|
|
45 |
alias s='cd ~/Sandbox' |
| 45 |
|
46 |
|
| 46 |
# Additional path settings. |
47 |
# Additional path settings. |
| 47 |
|
48 |
|
| ... |
| 64 |
# Useful function. Much wow! |
65 |
# Useful function. Much wow! |
| 65 |
|
66 |
|
| 66 |
backup() { |
67 |
backup() { |
|
|
68 |
CWD=$(pwd) |
| 67 |
VHOME=/home/$USER/Vault |
69 |
VHOME=/home/$USER/Vault |
| 68 |
ME=$(whoami)@$(hostname) |
70 |
ME=$(whoami)@$(hostname) |
| 69 |
|
71 |
|
| ... |
| 86 |
|
88 |
|
| 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 |
|
|
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/ \; |
| 89 |
|
94 |
|
| 90 |
# Sync with NAS. |
95 |
# Sync with NAS. |
| 91 |
rsync -azv \ |
96 |
rsync -azv \ |
| ... |
| 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
|
| ... |
| 4 |
syntax enable |
4 |
syntax enable |
| 5 |
|
5 |
|
| 6 |
" Theme. |
6 |
" Theme. |
| 7 |
if has('vim') |
|
|
| 8 |
colorscheme wildcharm |
|
|
| 9 |
endif |
|
|
| 10 |
set background=dark |
7 |
set background=dark |
| 11 |
hi Normal ctermbg=233 |
8 |
hi Normal ctermbg=233 |
| 12 |
|
9 |
|
| ... |
| 37 |
autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 |
34 |
autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 |
| 38 |
autocmd Filetype c,cpp,html,javascript,css,python setlocal expandtab tabstop=2 shiftwidth=2 |
35 |
autocmd 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 |
|
|
|