first commit
This commit is contained in:
commit
0610f4aeab
130 changed files with 9897 additions and 0 deletions
19
fn/-z4h-postinstall-forgit
Normal file
19
fn/-z4h-postinstall-forgit
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue