docs: Startseite auf 1.3.0 nachgezogen (Shell, Paletten, Rohadresse)
README beschreibt jetzt shell/ und den Ein-Zeilen-Aufruf ohne Token; Farbregel (Rot nur als Grafik, #E0454F fuer Text) steht dort, wo sie gelesen wird. SKILL.md auf 1.3.0 mit Abschnitt Shell/Terminal. CHANGELOG ohne Maschinen- und Hostnamen (Inhaltsregel). install.sh holt prompt.zsh bei Pipe-Aufruf ueber KALINA_CI_RAW. docs/aenderungen.md: Shell-Rollout per Skript nachziehen.
This commit is contained in:
1 parent
6882349bf4
commit
9e594e2f76
6 files changed
+76
-16
No files matched your search
+3
-1
@@ -22,7 +22,9 @@ kein oh-my-zsh und kein powerlevel10k noetig.
|
||||
## Installation auf einer neuen Maschine
|
||||
|
||||
```sh
|
||||
git clone http://192.168.188.161:3000/mm/kalina-ci.git
|
||||
# oder direkt, ohne Klon (Repo ist oeffentlich lesbar):
|
||||
# curl -fsSLo install.sh https://gitea.m-m.bio/mm/kalina-ci/raw/branch/main/shell/install.sh
|
||||
git clone https://gitea.m-m.bio/mm/kalina-ci.git
|
||||
cd kalina-ci/shell
|
||||
./install.sh --dry-run # zeigen, was passieren wuerde
|
||||
./install.sh # ausfuehren
|
||||
|
||||
+15
-7
@@ -22,6 +22,8 @@ TS="$(date +%Y%m%d-%H%M%S)"
|
||||
CONF_DIR="$HOME/.config/kalina-ci"
|
||||
PROMPT="$CONF_DIR/prompt.zsh"
|
||||
SRC_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
# Wo das Prompt-Modul herkommt, wenn es nicht neben dem Skript liegt
|
||||
RAW="${KALINA_CI_RAW:-https://gitea.m-m.bio/mm/kalina-ci/raw/branch/main/shell}"
|
||||
|
||||
DRY=0; DO_SHELL=1; DO_TERM=1; DO_CHSH=1
|
||||
for arg in "$@"; do
|
||||
@@ -102,18 +104,24 @@ do_shell() {
|
||||
install_zsh || true
|
||||
|
||||
run mkdir -p "$CONF_DIR"
|
||||
if [ -f "$PROMPT" ] && [ -f "$SRC_DIR/prompt.zsh" ]; then
|
||||
backup "$PROMPT"
|
||||
if [ -f "$SRC_DIR/prompt.zsh" ]; then
|
||||
[ -f "$PROMPT" ] && backup "$PROMPT"
|
||||
run cp -f "$SRC_DIR/prompt.zsh" "$PROMPT"
|
||||
ok "prompt.zsh aus $SRC_DIR uebernommen"
|
||||
elif [ -f "$SRC_DIR/prompt.zsh" ]; then
|
||||
run cp -f "$SRC_DIR/prompt.zsh" "$PROMPT"
|
||||
ok "prompt.zsh installiert"
|
||||
elif [ -f "$PROMPT" ]; then
|
||||
ok "prompt.zsh liegt bereits in $CONF_DIR"
|
||||
else
|
||||
warn "prompt.zsh weder neben dem Skript noch in $CONF_DIR — Shell-Teil uebersprungen"
|
||||
return 1
|
||||
# Aufruf per Pipe oder aus /tmp: Modul aus dem Repo holen (Repo ist oeffentlich)
|
||||
if [ "$DRY" = 1 ]; then
|
||||
printf ' [dry] %s/prompt.zsh nach %s laden\n' "$RAW" "$PROMPT"
|
||||
elif command -v curl >/dev/null && curl -fsSL "$RAW/prompt.zsh" -o "$PROMPT.tmp"; then
|
||||
mv "$PROMPT.tmp" "$PROMPT"; ok "prompt.zsh von $RAW geholt"
|
||||
elif command -v wget >/dev/null && wget -qO "$PROMPT.tmp" "$RAW/prompt.zsh"; then
|
||||
mv "$PROMPT.tmp" "$PROMPT"; ok "prompt.zsh von $RAW geholt"
|
||||
else
|
||||
warn "prompt.zsh nicht erreichbar ($RAW) — Shell-Teil uebersprungen"
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
local zshrc="$HOME/.zshrc"
|
||||
|
||||
Reference in new issue
Block a user