From cd76ca88483048791249846917c7768f7bfe301e Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Wed, 2 Sep 2026 07:43:42 +0200 Subject: zsh: Reihenfolge der Update-Funktionen angepasst --- windows/bin/system-update.cmd | 6 +++--- zsh/zshrc | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/windows/bin/system-update.cmd b/windows/bin/system-update.cmd index 64a7b9f..6c355d0 100644 --- a/windows/bin/system-update.cmd +++ b/windows/bin/system-update.cmd @@ -1,10 +1,10 @@ @echo off -call npm-update.cmd +call pkg-update.cmd if errorlevel 1 exit /b 1 -call nvim-update.cmd +call npm-update.cmd if errorlevel 1 exit /b 1 -call pkg-update.cmd +call nvim-update.cmd if errorlevel 1 exit /b 1 diff --git a/zsh/zshrc b/zsh/zshrc index acd9ed5..41dc612 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -80,17 +80,6 @@ alias pwgen='pwgen -s 48 1' alias ls='ls -G' # Funktionen -npm-update() { - npm update -g --loglevel=info -} - -nvim-update() { - nvim --headless \ - -c "lua require[[lazy]].sync({ wait = true })" \ - -c "UpdateParsers" \ - -c "qa" -} - pkg-update() { case "$OSTYPE" in darwin*) @@ -106,6 +95,17 @@ pkg-update() { esac } +npm-update() { + npm update -g --loglevel=info +} + +nvim-update() { + nvim --headless \ + -c "lua require[[lazy]].sync({ wait = true })" \ + -c "UpdateParsers" \ + -c "qa" +} + pkg-clean() { case "$OSTYPE" in darwin*) @@ -122,9 +122,9 @@ pkg-clean() { } system-update() { + pkg-update || return npm-update || return nvim-update || return - pkg-update || return if [[ "$1" == "--clean" ]]; then pkg-clean -- cgit v1.3