2
0

security: fix path traversal in plugin_rm, add coding tools

- prevent path traversal in ais plugin rm (reject .. and /)
- validate plugin_add requires user/repo format
- extract list_plugins() helper to deduplicate code
- add git aliases (s, d, l, lg, pa for dual push, etc)
- add cargo/rg aliases and mkcd helper to zshrc
- fix zr alias (source instead of unreachable exec)
This commit is contained in:
ai
2026-04-03 13:02:34 +00:00
parent cffc44205c
commit 760dea8147
3 changed files with 65 additions and 33 deletions

View File

@@ -12,3 +12,24 @@
defaultBranch = main
[push]
autoSetupRemote = true
[alias]
s = status -sb
d = diff
ds = diff --staged
l = log --oneline -20
lg = log --oneline --graph --all -30
a = add
cm = commit -m
co = checkout
br = branch -v
p = push
pa = !git push origin main && git push gitea main
f = fetch --all
last = log -1 --stat
undo = reset --soft HEAD~1
amend = commit --amend --no-edit
wip = !git add -A && git commit -m 'wip'
[diff]
colorMoved = default
[merge]
conflictstyle = diff3