diff options
Diffstat (limited to 'zsh')
| -rw-r--r-- | zsh/zshrc | 19 |
1 files changed, 15 insertions, 4 deletions
| @@ -99,6 +99,12 @@ npm-update() { | |||
| 99 | npm update -g --loglevel=info | 99 | npm update -g --loglevel=info |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | pipx-update() { | ||
| 103 | pipx list > /dev/null || return | ||
| 104 | |||
| 105 | pipx upgrade-all | ||
| 106 | } | ||
| 107 | |||
| 102 | nvim-update() { | 108 | nvim-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 | ||
| 124 | system-update() { | 130 | system-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 |
