updated dotfiles, fixed install scripts, added missing packages

This commit is contained in:
2026-08-03 02:53:32 +02:00
parent e845d8bda1
commit e854d4a22e
17 changed files with 309 additions and 76 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
# run_once_45-configure-user.sh
# User configuration.
# TODO prompt which shell, download ??
set -euo pipefail
if ! command -v fish >/dev/null 2>&1; then
echo ">>> [configure-user] fish not installed; skipping"
exit 0
fi
USER_NAME="${USER:-$(id -un)}"
current_shell="$(getent passwd "$USER_NAME" | cut -d: -f7)"
if [ "$current_shell" = "$(command -v fish)" ]; then
echo ">>> [configure-user] shell already set to fish"
exit 0
fi
echo ">>> [configure-user] changing shell for $USER_NAME to $(command -v fish)"
sudo chsh -s "$(command -v fish)" "$USER_NAME" || true