aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-09-02 09:52:49 +0200
committerThomas Schmucker <ts@its1.de>2026-09-02 09:52:49 +0200
commit807170eef48e2181abf306b1424c736f5179b36e (patch)
treefa637b9f0589c4b2866007908f55a7636226fffe
parente44fd96e3b8be7480e8a93af3e3bcb5767409b82 (diff)
parentcd76ca88483048791249846917c7768f7bfe301e (diff)
downloaddotfiles-807170eef48e2181abf306b1424c736f5179b36e.tar.gz
dotfiles-807170eef48e2181abf306b1424c736f5179b36e.tar.bz2
dotfiles-807170eef48e2181abf306b1424c736f5179b36e.zip
Merge branch 'master' into add-jinja-support
-rw-r--r--git/config1
-rw-r--r--windows/bin/gmake.cmd8
-rw-r--r--windows/bin/npm-update.cmd3
-rw-r--r--windows/bin/nvim-update.cmd3
-rw-r--r--windows/bin/pkg-update.cmd3
-rw-r--r--windows/bin/system-update.cmd10
-rw-r--r--zsh/zshrc44
7 files changed, 63 insertions, 9 deletions
diff --git a/git/config b/git/config
index 411b924..f53f526 100644
--- a/git/config
+++ b/git/config
@@ -39,3 +39,4 @@
39[alias] 39[alias]
40 lg = log --color --graph --pretty=format:'%C(magenta)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches 40 lg = log --color --graph --pretty=format:'%C(magenta)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches
41 cleanup = "!git branch --merged master --format='%(refname:short)' | grep -v '^master$' | xargs -r git branch -d" 41 cleanup = "!git branch --merged master --format='%(refname:short)' | grep -v '^master$' | xargs -r git branch -d"
42 sync = !git commit -am \"sync\" && git push
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
2rem Wrapper, damit opt.makeprg = "gmake" (aus nvim/lua/config/options.lua) 3rem Wrapper, damit opt.makeprg = "gmake" (aus nvim/lua/config/options.lua)
3rem unter Windows funktioniert, ohne die bestehende Config anzupassen. 4rem unter Windows funktioniert.
4rem Reicht alle Argumente an das im PATH gefundene "make" weiter.
5rem
6rem Einmalig einrichten: dieses Verzeichnis (windows\bin) zum PATH
7rem hinzufuegen, z.B. ueber:
8rem setx PATH "%PATH%;%USERPROFILE%\dotfiles\windows\bin"
9 5
10make %* 6make %*
11exit /b %ERRORLEVEL% 7exit /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
3npm 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
3rem Prüft vor dem Parser-Update, ob ein C-Compiler (cl.exe, MSVC) im PATH
4rem gefunden wird - nvim-treesitter braucht ihn zum Kompilieren der Parser.
5
6where /q cl.exe 3where /q cl.exe
7if errorlevel 1 ( 4if 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
3winget 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..6c355d0
--- /dev/null
+++ b/windows/bin/system-update.cmd
@@ -0,0 +1,10 @@
1@echo off
2
3call pkg-update.cmd
4if errorlevel 1 exit /b 1
5
6call npm-update.cmd
7if errorlevel 1 exit /b 1
8
9call nvim-update.cmd
10if errorlevel 1 exit /b 1
diff --git a/zsh/zshrc b/zsh/zshrc
index 6f31eaa..41dc612 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -80,6 +80,25 @@ alias pwgen='pwgen -s 48 1'
80alias ls='ls -G' 80alias ls='ls -G'
81 81
82# Funktionen 82# Funktionen
83pkg-update() {
84 case "$OSTYPE" in
85 darwin*)
86 brew update && brew upgrade
87 ;;
88 freebsd*)
89 doas pkg update && doas pkg upgrade
90 ;;
91 *)
92 print -u2 "pkg-update: kein Paketmanager für $OSTYPE hinterlegt"
93 return 1
94 ;;
95 esac
96}
97
98npm-update() {
99 npm update -g --loglevel=info
100}
101
83nvim-update() { 102nvim-update() {
84 nvim --headless \ 103 nvim --headless \
85 -c "lua require[[lazy]].sync({ wait = true })" \ 104 -c "lua require[[lazy]].sync({ wait = true })" \
@@ -87,6 +106,31 @@ nvim-update() {
87 -c "qa" 106 -c "qa"
88} 107}
89 108
109pkg-clean() {
110 case "$OSTYPE" in
111 darwin*)
112 brew autoremove
113 ;;
114 freebsd*)
115 doas pkg autoremove
116 ;;
117 *)
118 print -u2 "pkg-clean: kein Paketmanager für $OSTYPE hinterlegt"
119 return 1
120 ;;
121 esac
122}
123
124system-update() {
125 pkg-update || return
126 npm-update || return
127 nvim-update || return
128
129 if [[ "$1" == "--clean" ]]; then
130 pkg-clean
131 fi
132}
133
90# Command completion 134# Command completion
91autoload -U compinit 135autoload -U compinit
92compinit 136compinit