diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-08-04 23:34:00 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-08-04 23:34:00 +0200 |
| commit | b910bec6252cdc3886cce140f175e3f48e9a62e0 (patch) | |
| tree | f5a2c4219e8e096e731d4a27d6ce484f4cfb1aa4 | |
| parent | 8695cc64dc5778b46fcbe6c5f3c3a960665f33d4 (diff) | |
| download | dotfiles-b910bec6252cdc3886cce140f175e3f48e9a62e0.tar.gz | |
Update
| -rwxr-xr-x | shenanigans.sh | 17 | ||||
| -rw-r--r-- | vimrc | 2 |
2 files changed, 18 insertions, 1 deletions
diff --git a/shenanigans.sh b/shenanigans.sh index cff5f06..696b618 100755 --- a/shenanigans.sh +++ b/shenanigans.sh | |||
| @@ -99,6 +99,7 @@ backup() { | |||
| 99 | mkdir ../twow | 99 | mkdir ../twow |
| 100 | cp -Rf /home/$USER/Games/turtlewow/Interface ../twow | 100 | cp -Rf /home/$USER/Games/turtlewow/Interface ../twow |
| 101 | cp -Rf /home/$USER/Games/turtlewow/WTF ../twow | 101 | cp -Rf /home/$USER/Games/turtlewow/WTF ../twow |
| 102 | cp -Rf /home/$USER/Games/turtlewow/start.sh ../twow/ | ||
| 102 | 103 | ||
| 103 | # Sync with NAS. | 104 | # Sync with NAS. |
| 104 | rsync -azv \ | 105 | rsync -azv \ |
| @@ -117,3 +118,19 @@ backup() { | |||
| 117 | # Return back to original directory | 118 | # Return back to original directory |
| 118 | cd $CWD | 119 | cd $CWD |
| 119 | } | 120 | } |
| 121 | |||
| 122 | update() { | ||
| 123 | if grep -qi "debian" /etc/os-release; then | ||
| 124 | sudo apt update | ||
| 125 | sudo apt upgrade -y | ||
| 126 | fi | ||
| 127 | |||
| 128 | if grep -qi "fedora" /etc/os-release; then | ||
| 129 | dnf check-update | ||
| 130 | sudo dnf update -y | ||
| 131 | fi | ||
| 132 | |||
| 133 | if which flatpak > /dev/null 2>&1; then | ||
| 134 | flatpak update -y | ||
| 135 | fi | ||
| 136 | } | ||
| @@ -19,7 +19,7 @@ nnoremap <C-q> :copen<cr> | |||
| 19 | " Personal tabs/spaces settings. | 19 | " Personal tabs/spaces settings. |
| 20 | autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 | 20 | autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 |
| 21 | autocmd Filetype c,cpp,zig setlocal expandtab tabstop=4 shiftwidth=4 | 21 | autocmd Filetype c,cpp,zig setlocal expandtab tabstop=4 shiftwidth=4 |
| 22 | autocmd Filetype lua,nix,html,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 | 22 | autocmd Filetype lua,nix,html,xml,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 |
| 23 | 23 | ||
| 24 | " External auto-formatters. | 24 | " External auto-formatters. |
| 25 | autocmd FileType c,cpp setlocal formatprg=clang-format | 25 | autocmd FileType c,cpp setlocal formatprg=clang-format |
