diff --git a/.chezmoitemplates/zshrc_linux.tmpl b/.chezmoitemplates/zshrc_linux.tmpl index c5e5dd0..5c98403 100644 --- a/.chezmoitemplates/zshrc_linux.tmpl +++ b/.chezmoitemplates/zshrc_linux.tmpl @@ -235,7 +235,6 @@ autoload -Uz compinit compinit eval "$(starship init zsh)" -eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" test -e "$HOME/.shellfishrc" && source "$HOME/.shellfishrc" diff --git a/executable_install-fedora.sh b/executable_install-fedora.sh index 619cff0..2f3e9a9 100755 --- a/executable_install-fedora.sh +++ b/executable_install-fedora.sh @@ -2,8 +2,8 @@ set -e # OS-Überprüfung -if [[ "$(uname -s)" != "Linux" ]] || ! grep -q '^ID_LIKE=fedora' /etc/os-release; then - echo "Dieses Skript läuft nur unter Fedora Linux" >&2 +if [[ "$(uname -s)" != "Linux" ]] || ! grep -Eq '^ID=fedora|^ID_LIKE=.*fedora' /etc/os-release; then + echo "Dieses Skript läuft nur unter Fedora Linux oder Fedora-ähnlichen Distributionen." >&2 exit 1 fi @@ -99,4 +99,4 @@ else echo "MinIO Client ist bereits installiert, überspringe Download" fi -echo "Installationscript abgeschlossen!!!" \ No newline at end of file +echo "Installationscript abgeschlossen!!!" diff --git a/run_onchange_apple-keyboard-swap.sh.tmpl b/run_onchange_apple-keyboard-swap.sh.tmpl index d0740f7..03d624b 100755 --- a/run_onchange_apple-keyboard-swap.sh.tmpl +++ b/run_onchange_apple-keyboard-swap.sh.tmpl @@ -1,12 +1,7 @@ +{{- if and (eq .chezmoi.os "linux") (eq .chezmoi.arch "arm64") }} #!/bin/bash # Config hash: {{ "options hid-apple swap_fn_leftctrl=1" | sha256sum }} -# Überprüfen, ob das System Linux mit aarch64 ist -if [[ "$(uname -s)" != "Linux" || "$(uname -m)" != "aarch64" ]]; then - echo "Dieses Skript ist nur auf Linux mit der Architektur aarch64 ausführbar." - exit 0 -fi - echo "Ändere Apple Funktionstaste mit der Kontrolltaste!!!" echo "Ändere Apple Commandtaste mit der Altasten!!!" @@ -20,3 +15,4 @@ echo 1 | sudo tee /sys/module/hid_apple/parameters/swap_fn_leftctrl # Dauerhafte Konfiguration echo -e "options hid_apple swap_opt_cmd=1\noptions hid_apple swap_fn_leftctrl=1" | sudo tee /etc/modprobe.d/hid_apple.conf sudo dracut -f +{{- end }}