diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-03-05 13:41:54 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-03-05 13:41:54 +0100 |
commit | 2abd0e0218ba60e9f0dad348a3c2243a3324e40c (patch) | |
tree | c9e9f8e9968d6e8b93b90b4bd97de68084c0a316 /.config/yadm/root/bootstrap | |
parent | cc249cec9ca858caf529ec4475ee750ff72ac4cc (diff) |
mode: reload nvim colors live
Diffstat (limited to '.config/yadm/root/bootstrap')
-rwxr-xr-x | .config/yadm/root/bootstrap | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/.config/yadm/root/bootstrap b/.config/yadm/root/bootstrap index 19e5148..b244471 100755 --- a/.config/yadm/root/bootstrap +++ b/.config/yadm/root/bootstrap @@ -28,9 +28,12 @@ begintask "copy system config files" s cp -r etc/. /etc endtask -begintask "set pinentry program to pinentry-gnome3 (GTK 3)" -s ln -sf pinentry-gnome3 "$(command -v pinentry)" -endtask +PINENTRY="pinentry-gnome3" +[ "$(command -v pinentry | xargs realpath | xargs basename)" != "$PINENTRY" ] && ( + begintask "set pinentry program to $PINENTRY" + s ln -sf "$PINENTRY" "$(command -v pinentry)" + endtask +) begintask "enabling services" s systemctl enable bluetooth ntpd cups @@ -69,3 +72,14 @@ s grep '^#\s*\<Color\>' /etc/pacman.conf && ( endtask ) +[ "$(getent passwd "$SETUP_USER" | cut -d: -f7 | xargs basename)" != "zsh" ] && ( + begintask "set user shell to zsh" + s chsh -s "$(command -v zsh)" "$SETUP_USER" + endtask +) + +cat << EOF + +root bootstrap finished in $(finishtime)! + +EOF |