diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-13 17:09:37 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-13 17:09:37 +0100 |
| commit | efaa5bdb5adb37aca2c170bedf09c32d8929e9ff (patch) | |
| tree | 82910651d84742d9d93cbe16e9df6ff4b0b4660d | |
| parent | 14345689fb8c7b0205dc7d84a4bc63d7376c924b (diff) | |
| download | dotfiles-efaa5bdb5adb37aca2c170bedf09c32d8929e9ff.tar.gz | |
Update to vimrc
| -rwxr-xr-x | shenanigans.sh | 9 | ||||
| -rw-r--r-- | 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' | |||
| 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,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 | ||
| 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 | ||
| @@ -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 | } |
| @@ -4,9 +4,6 @@ set nocompatible | |||
| 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,6 +34,3 @@ filetype plugin indent on | |||
| 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 | |||
