aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zshrc')
-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