diff options
| -rw-r--r-- | windows/bin/gmake.cmd | 8 | ||||
| -rw-r--r-- | windows/bin/npm-update.cmd | 3 | ||||
| -rw-r--r-- | windows/bin/nvim-update.cmd | 3 | ||||
| -rw-r--r-- | windows/bin/pkg-update.cmd | 3 | ||||
| -rw-r--r-- | windows/bin/system-update.cmd | 10 | ||||
| -rw-r--r-- | zsh/zshrc | 14 |
6 files changed, 23 insertions, 18 deletions
diff --git a/windows/bin/gmake.cmd b/windows/bin/gmake.cmd index 1c45ce5..5f2bad4 100644 --- a/windows/bin/gmake.cmd +++ b/windows/bin/gmake.cmd | |||
| @@ -1,11 +1,7 @@ | |||
| 1 | @echo off | 1 | @echo off |
| 2 | |||
| 2 | rem Wrapper, damit opt.makeprg = "gmake" (aus nvim/lua/config/options.lua) | 3 | rem Wrapper, damit opt.makeprg = "gmake" (aus nvim/lua/config/options.lua) |
| 3 | rem unter Windows funktioniert, ohne die bestehende Config anzupassen. | 4 | rem unter Windows funktioniert. |
| 4 | rem Reicht alle Argumente an das im PATH gefundene "make" weiter. | ||
| 5 | rem | ||
| 6 | rem Einmalig einrichten: dieses Verzeichnis (windows\bin) zum PATH | ||
| 7 | rem hinzufuegen, z.B. ueber: | ||
| 8 | rem setx PATH "%PATH%;%USERPROFILE%\dotfiles\windows\bin" | ||
| 9 | 5 | ||
| 10 | make %* | 6 | make %* |
| 11 | exit /b %ERRORLEVEL% | 7 | exit /b %ERRORLEVEL% |
diff --git a/windows/bin/npm-update.cmd b/windows/bin/npm-update.cmd new file mode 100644 index 0000000..9152c97 --- /dev/null +++ b/windows/bin/npm-update.cmd | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | @echo off | ||
| 2 | |||
| 3 | npm update -g --loglevel=info | ||
diff --git a/windows/bin/nvim-update.cmd b/windows/bin/nvim-update.cmd index 7521e7e..5317f34 100644 --- a/windows/bin/nvim-update.cmd +++ b/windows/bin/nvim-update.cmd | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | @echo off | 1 | @echo off |
| 2 | 2 | ||
| 3 | rem Prüft vor dem Parser-Update, ob ein C-Compiler (cl.exe, MSVC) im PATH | ||
| 4 | rem gefunden wird - nvim-treesitter braucht ihn zum Kompilieren der Parser. | ||
| 5 | |||
| 6 | where /q cl.exe | 3 | where /q cl.exe |
| 7 | if errorlevel 1 ( | 4 | if errorlevel 1 ( |
| 8 | echo [nvim-update] cl.exe nicht gefunden - Neovim aus einer "Developer PowerShell for VS" starten. 1>&2 | 5 | echo [nvim-update] cl.exe nicht gefunden - Neovim aus einer "Developer PowerShell for VS" starten. 1>&2 |
diff --git a/windows/bin/pkg-update.cmd b/windows/bin/pkg-update.cmd new file mode 100644 index 0000000..3747579 --- /dev/null +++ b/windows/bin/pkg-update.cmd | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | @echo off | ||
| 2 | |||
| 3 | winget upgrade --all --accept-package-agreements --accept-source-agreements | ||
diff --git a/windows/bin/system-update.cmd b/windows/bin/system-update.cmd new file mode 100644 index 0000000..64a7b9f --- /dev/null +++ b/windows/bin/system-update.cmd | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | @echo off | ||
| 2 | |||
| 3 | call npm-update.cmd | ||
| 4 | if errorlevel 1 exit /b 1 | ||
| 5 | |||
| 6 | call nvim-update.cmd | ||
| 7 | if errorlevel 1 exit /b 1 | ||
| 8 | |||
| 9 | call pkg-update.cmd | ||
| 10 | if errorlevel 1 exit /b 1 | ||
| @@ -81,18 +81,14 @@ alias ls='ls -G' | |||
| 81 | 81 | ||
| 82 | # Funktionen | 82 | # Funktionen |
| 83 | npm-update() { | 83 | npm-update() { |
| 84 | if (($+commands[npm])); then | 84 | npm update -g --loglevel=info |
| 85 | npm update -g --loglevel=info | ||
| 86 | fi | ||
| 87 | } | 85 | } |
| 88 | 86 | ||
| 89 | nvim-update() { | 87 | nvim-update() { |
| 90 | if (($+commands[nvim])); then | 88 | nvim --headless \ |
| 91 | nvim --headless \ | 89 | -c "lua require[[lazy]].sync({ wait = true })" \ |
| 92 | -c "lua require[[lazy]].sync({ wait = true })" \ | 90 | -c "UpdateParsers" \ |
| 93 | -c "UpdateParsers" \ | 91 | -c "qa" |
| 94 | -c "qa" | ||
| 95 | fi | ||
| 96 | } | 92 | } |
| 97 | 93 | ||
| 98 | pkg-update() { | 94 | pkg-update() { |
