Updated config
This commit is contained in:
parent
6d7312c465
commit
c04af12b8e
6 changed files with 98 additions and 0 deletions
16
.config/fish/scripts/system-install
Executable file
16
.config/fish/scripts/system-install
Executable 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/
|
Loading…
Add table
Add a link
Reference in a new issue