aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-09-10 11:34:18 +0200
committerThomas Schmucker <ts@its1.de>2026-09-10 11:34:18 +0200
commitb4bc724ae443a69981b252ca892f00c4e568ba76 (patch)
tree6d8434bf63ffbc311ae148e4dfa9f6f9b51e1926
parentc8bcbb89c65af17cf7742bf131fc8c5a11ebac50 (diff)
downloaddotfiles-b4bc724ae443a69981b252ca892f00c4e568ba76.tar.gz
dotfiles-b4bc724ae443a69981b252ca892f00c4e568ba76.tar.bz2
dotfiles-b4bc724ae443a69981b252ca892f00c4e568ba76.zip
neue Funktion: pipx-update()
-rw-r--r--zsh/zshrc19
1 files changed, 15 insertions, 4 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 41dc612..1d1ef6f 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -99,6 +99,12 @@ npm-update() {
99 npm update -g --loglevel=info 99 npm update -g --loglevel=info
100} 100}
101 101
102pipx-update() {
103 pipx list > /dev/null || return
104
105 pipx upgrade-all
106}
107
102nvim-update() { 108nvim-update() {
103 nvim --headless \ 109 nvim --headless \
104 -c "lua require[[lazy]].sync({ wait = true })" \ 110 -c "lua require[[lazy]].sync({ wait = true })" \
@@ -122,13 +128,18 @@ pkg-clean() {
122} 128}
123 129
124system-update() { 130system-update() {
131 # pkg-clean laeuft bewusst zuerst: `brew autoremove` kann eine verwaiste
132 # python@3.x-Formel entfernen und damit die pipx-Venvs unbrauchbar machen.
133 # Am Ende der Kette bliebe dieser Schaden bis zum naechsten Lauf unbemerkt,
134 # am Anfang meldet ihn `pipx-update` im selben Durchgang.
135 if [[ "$1" == "--clean" ]]; then
136 pkg-clean || return
137 fi
138
125 pkg-update || return 139 pkg-update || return
126 npm-update || return 140 npm-update || return
141 pipx-update || return
127 nvim-update || return 142 nvim-update || return
128
129 if [[ "$1" == "--clean" ]]; then
130 pkg-clean
131 fi
132} 143}
133 144
134# Command completion 145# Command completion