updated scripts: better warn messages, added/updated dotfiles

This commit is contained in:
2026-08-03 03:51:23 +02:00
parent 9f2b05b0a1
commit d359c751be
11 changed files with 145 additions and 14 deletions
+3 -1
View File
@@ -4,6 +4,8 @@
set -euo pipefail
warn() { echo ">>> [configure-root] WARNING: $*" >&2; }
SRC="{{ .chezmoi.sourceDir }}"
ROOT_HOME="/root"
@@ -48,7 +50,7 @@ if command -v fish >/dev/null 2>&1; then
current="$(getent passwd root | cut -d: -f7)"
if [ "$current" != "$(command -v fish)" ]; then
echo ">>> [configure-root] chsh root → fish"
sudo chsh -s "$(command -v fish)" root || true
sudo chsh -s "$(command -v fish)" root || warn "chsh failed for root (may need /etc/shells entry)"
else
echo ">>> [configure-root] root shell already fish"
fi