Updated config

This commit is contained in:
Eduard Urbach 2025-06-26 15:20:16 +02:00
parent 6d7312c465
commit c04af12b8e
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
6 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#!/usr/bin/fish
# Git clone .home directory
[ ! -d $HOME/.home ] && git clone --bare https://git.urbach.dev/eduard/home $HOME/.home && home checkout
# Detect if we use sudo or doas
set sudo sudo
if command -q doas
set sudo doas
end
# System configuration
set file sysctl.d
[ -d /etc/$file ] && [ ! -L /etc/$file ] && $sudo rm -rf /etc/$file
$sudo ln -s -f $HOME/.config/etc/$file /etc/