diff --git a/Linux/SSH/colorscheme.sh b/Linux/SSH/colorscheme.sh index b17d97b..99bc5dc 100644 --- a/Linux/SSH/colorscheme.sh +++ b/Linux/SSH/colorscheme.sh @@ -17,7 +17,7 @@ is_rhel() { # --- 1) Bash-Teil: nur auf Alpine --- if is_alpine; then - echo "Alpine Linux erkannt – führe Bash‑Installation/-Konfig durch." + echo "Alpine Linux erkannt - führe Bash-Installation/-Konfig durch." # Bash installieren, falls nicht vorhanden if ! command -v bash >/dev/null 2>&1; then @@ -35,7 +35,7 @@ if is_alpine; then fi # Default‑Shell aller User (UID≥1000 und root) auf /bin/bash setzen - echo " → Setze Default‑Shell auf /bin/bash für alle User:" + echo " → Setze Default-Shell auf /bin/bash für alle User:" while IFS=: read -r user pass uid gid home shell; do if [ "$uid" -ge 1000 ] || [ "$uid" -eq 0 ]; then if [ "$shell" != "/bin/bash" ]; then @@ -65,13 +65,13 @@ if is_alpine; then update_bashrc "/root" for d in /home/*; do [ -d "$d" ] && update_bashrc "$d"; done - echo "Bash‑Teil auf Alpine abgeschlossen." + echo "Bash-Teil auf Alpine abgeschlossen." else - echo "Kein Alpine – Bash‑Teil übersprungen." + echo "Kein Alpine - Bash-Teil übersprungen." fi # --- 2) Nano + Syntax‑Highlighting für alle Distros --- -echo "Installiere/configuriere Nano + Syntax‑Highlighting…" +echo "Installiere/configuriere Nano + Syntax-Highlighting…" if is_alpine; then apk update @@ -89,7 +89,7 @@ elif is_rhel; then fi yum install -y nano nano-syntax-highlighting else - echo "Unbekannte Distribution – versuche, Nano zu installieren…" + echo "Unbekannte Distribution - versuche, Nano zu installieren…" # Fallback: gängige Paketmanager testen if command -v apt >/dev/null; then apt update && apt install -y nano @@ -105,9 +105,9 @@ NANORC=/etc/nanorc INCLUDE='include "/usr/share/nano/*.nanorc"' if ! grep -Fxq "$INCLUDE" $NANORC; then echo "$INCLUDE" >> $NANORC - echo " → Nano: Syntax‑Highlighting in $NANORC aktiviert." + echo " → Nano: Syntax-Highlighting in $NANORC aktiviert." else - echo " → Nano: Syntax‑Highlighting bereits aktiviert." + echo " → Nano: Syntax-Highlighting bereits aktiviert." fi echo "Skript fertig."