aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--windows/bin/system-update.cmd6
-rw-r--r--zsh/zshrc24
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 @@
1@echo off 1@echo off
2 2
3call npm-update.cmd 3call pkg-update.cmd
4if errorlevel 1 exit /b 1 4if errorlevel 1 exit /b 1
5 5
6call nvim-update.cmd 6call npm-update.cmd
7if errorlevel 1 exit /b 1 7if errorlevel 1 exit /b 1
8 8
9call pkg-update.cmd 9call nvim-update.cmd
10if errorlevel 1 exit /b 1 10if 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'
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