fix scripts
This commit is contained in:
parent
251c75a997
commit
5514e70ac2
3 changed files with 5 additions and 10 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Reference in a new issue