|
diff --git a/shenanigans.sh b/shenanigans.sh
|
| ... |
| 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 |
# 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 |
} |
|
diff --git a/vimrc b/vimrc
|
| ... |
| 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 |
| ... |