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
@@ -5,6 +5,8 @@
set -euo pipefail
warn() { echo ">>> [configure-user] WARNING: $*" >&2; }
if ! command -v fish >/dev/null 2>&1; then
echo ">>> [configure-user] fish not installed; skipping"
exit 0
@@ -19,4 +21,4 @@ if [ "$current_shell" = "$(command -v fish)" ]; then
fi
echo ">>> [configure-user] changing shell for $USER_NAME to $(command -v fish)"
sudo chsh -s "$(command -v fish)" "$USER_NAME" || true
sudo chsh -s "$(command -v fish)" "$USER_NAME" || warn "chsh failed for $USER_NAME (may need /etc/shells entry)"