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
|
compinit
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
|
||||||
|
|
||||||
test -e "$HOME/.shellfishrc" && source "$HOME/.shellfishrc"
|
test -e "$HOME/.shellfishrc" && source "$HOME/.shellfishrc"
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# OS-Überprüfung
|
# OS-Überprüfung
|
||||||
if [[ "$(uname -s)" != "Linux" ]] || ! grep -q '^ID_LIKE=fedora' /etc/os-release; then
|
if [[ "$(uname -s)" != "Linux" ]] || ! grep -Eq '^ID=fedora|^ID_LIKE=.*fedora' /etc/os-release; then
|
||||||
echo "Dieses Skript läuft nur unter Fedora Linux" >&2
|
echo "Dieses Skript läuft nur unter Fedora Linux oder Fedora-ähnlichen Distributionen." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -99,4 +99,4 @@ else
|
||||||
echo "MinIO Client ist bereits installiert, überspringe Download"
|
echo "MinIO Client ist bereits installiert, überspringe Download"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installationscript abgeschlossen!!!"
|
echo "Installationscript abgeschlossen!!!"
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
|
{{- if and (eq .chezmoi.os "linux") (eq .chezmoi.arch "arm64") }}
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Config hash: {{ "options hid-apple swap_fn_leftctrl=1" | sha256sum }}
|
# 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 Funktionstaste mit der Kontrolltaste!!!"
|
||||||
echo "Ändere Apple Commandtaste mit der Altasten!!!"
|
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
|
# 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
|
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
|
sudo dracut -f
|
||||||
|
{{- end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue