aboutsummaryrefslogtreecommitdiff
path: root/zsh/zshrc
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-09-02 07:43:42 +0200
committerThomas Schmucker <ts@its1.de>2026-09-02 07:43:42 +0200
commitcd76ca88483048791249846917c7768f7bfe301e (patch)
tree794b090e97e00b0830407cc7152be8eba7672028 /zsh/zshrc
parenta5fcfee3f33f95b9ad41f42e6676ef0b579904e5 (diff)
downloaddotfiles-cd76ca88483048791249846917c7768f7bfe301e.tar.gz
dotfiles-cd76ca88483048791249846917c7768f7bfe301e.tar.bz2
dotfiles-cd76ca88483048791249846917c7768f7bfe301e.zip
zsh: Reihenfolge der Update-Funktionen angepasst
Diffstat (limited to 'zsh/zshrc')
-rw-r--r--zsh/zshrc24
1 files changed, 12 insertions, 12 deletions
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'
80alias ls='ls -G' 80alias ls='ls -G'
81 81
82# Funktionen 82# Funktionen
83npm-update() {
84 npm update -g --loglevel=info
85}
86
87nvim-update() {
88 nvim --headless \
89 -c "lua require[[lazy]].sync({ wait = true })" \
90 -c "UpdateParsers" \
91 -c "qa"
92}
93
94pkg-update() { 83pkg-update() {
95 case "$OSTYPE" in 84 case "$OSTYPE" in
96 darwin*) 85 darwin*)
@@ -106,6 +95,17 @@ pkg-update() {
106 esac 95 esac
107} 96}
108 97
98npm-update() {
99 npm update -g --loglevel=info
100}
101
102nvim-update() {
103 nvim --headless \
104 -c "lua require[[lazy]].sync({ wait = true })" \
105 -c "UpdateParsers" \
106 -c "qa"
107}
108
109pkg-clean() { 109pkg-clean() {
110 case "$OSTYPE" in 110 case "$OSTYPE" in
111 darwin*) 111 darwin*)
@@ -122,9 +122,9 @@ pkg-clean() {
122} 122}
123 123
124system-update() { 124system-update() {
125 pkg-update || return
125 npm-update || return 126 npm-update || return
126 nvim-update || return 127 nvim-update || return
127 pkg-update || return
128 128
129 if [[ "$1" == "--clean" ]]; then 129 if [[ "$1" == "--clean" ]]; then
130 pkg-clean 130 pkg-clean