first commit

This commit is contained in:
Arctic 2025-07-04 11:48:40 -05:00
commit 0610f4aeab
130 changed files with 9897 additions and 0 deletions

View file

@ -0,0 +1,19 @@
#!/usr/bin/env zsh
eval "$_z4h_opt"
local file=$Z4H_PACKAGE_DIR/forgit.plugin.zsh
[[ -e $file ]] || return 0
local code
code=$(<$file) || return
local orig="
set | awk -F '=' '{ print \$1 }' | grep FORGIT_ | while read -r var; do
if ! export | grep -q \"\\(^\$var=\\|^export \$var=\\)\"; then
"
local sub='
for var in "${(@)parameters[(I)FORGIT_*]}"; do
if [[ ${parameters[$var]} != *export* ]]; then
'
print -r -- ${code/$orig/$sub} >$file