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
19 lines
635 B
Bash
Executable File
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
|
|
|