From efaa5bdb5adb37aca2c170bedf09c32d8929e9ff Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 13 Mar 2024 17:09:37 +0100 Subject: Update to vimrc --- shenanigans.sh | 9 +++++++++ vimrc | 6 ------ 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' 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 @@ if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi # Useful function. Much wow! backup() { + CWD=$(pwd) VHOME=/home/$USER/Vault ME=$(whoami)@$(hostname) @@ -87,6 +89,9 @@ backup() { 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 \ --exclude '.venv/' \ @@ -94,9 +99,13 @@ backup() { --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 c444e45..5621016 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 - -- cgit v1.2.3