dotfiles/modules/03-shell.sh
Martin Büchler 088a46cced refactor(packages): optimize package installation logic to check for existing packages
refactor(shell): enhance TTY keyboard layout setup with existing keymap check
refactor(browsers): improve browser installation script to avoid reinstalling existing packages
refactor(devtools): streamline development tools installation by checking for already installed packages
2025-08-14 22:53:52 +02:00

19 lines
635 B
Bash
Executable File

#!/usr/bin/env bash
# Set zsh as the default shell
if [ "$SHELL" != "$(command -v zsh)" ]; then
echo "Setting zsh as the default shell..."
chsh -s "$(command -v zsh)"
fi
# Set German nodeadkeys layout for TTY/console
if command -v localectl >/dev/null 2>&1; then
current_keymap=$(localectl status | awk -F': ' '/VC Keymap/ {print $2}' | xargs)
if [ "$current_keymap" != "de-latin1-nodeadkeys" ]; then
echo "Setting TTY keyboard layout to de-latin1-nodeadkeys..."
sudo localectl set-keymap de-latin1-nodeadkeys
else
echo "TTY keyboard layout already set to de-latin1-nodeadkeys."
fi
fi