diff --git a/shenanigans.sh b/shenanigans.sh index 4833bd2acde62572e1abea18d7ea44994317e03b..d0a1cf44beae853bca929b4372665064794cd1e7 100755 --- a/shenanigans.sh +++ b/shenanigans.sh @@ -42,6 +42,7 @@ alias p='cd ~/Vault/projects' alias j='cd ~/Junk/current' alias d='cd ~/Downloads' +alias s='cd ~/Sandbox' # Additional path settings. @@ -64,6 +65,7 @@ # Useful function. Much wow! backup() { + CWD=$(pwd) VHOME=/home/$USER/Vault ME=$(whoami)@$(hostname) @@ -86,6 +88,9 @@ cp -Rf /home/$USER/.aws/ ./ dconf dump /com/gexperts/Tilix/ > tilix.dconf # dconf load /com/gexperts/Tilix/ < tilix.dconf + + find /home/$USER/Videos -type f -name "*.webm" -exec cp {} $VHOME/videos/ \; + find /home/$USER/Pictures -type f -name "*.png" -exec cp {} $VHOME/pictures/ \; # Sync with NAS. rsync -azv \ @@ -94,9 +99,13 @@ --exclude '.git/' \ --exclude '.import/' \ --exclude '.godot/' \ --exclude 'node_modules/' \ + --exclude 'digg-v5/' \ --delete \ $VHOME/ /media/Void/Backup/$ME/ # Add to log file. echo `date +"%D %T"` >> ~/.vault.log + + # Return back to original directory + cd $CWD } diff --git a/vimrc b/vimrc index c444e451b08a857d1f3623dea42efb264dc10b38..5621016b70b2e5552ea4e05d886473098eb21063 100644 --- a/vimrc +++ b/vimrc @@ -4,9 +4,6 @@ set nocompatible syntax enable " Theme. -if has('vim') - colorscheme wildcharm -endif set background=dark hi Normal ctermbg=233 @@ -37,6 +34,3 @@ filetype plugin indent on autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 autocmd Filetype c,cpp,html,javascript,css,python setlocal expandtab tabstop=2 shiftwidth=2 -" Throwaway config. -"au BufReadPost *.twig set syntax=html -