first commit
This commit is contained in:
commit
0610f4aeab
130 changed files with 9897 additions and 0 deletions
14
fn/-z4h-postinstall-self
Normal file
14
fn/-z4h-postinstall-self
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
z4h compile -- $Z4H/zsh4humans/{main.zsh,sc/exec-zsh-i,fn/(|-|_)z4h[^.]#~*.zwc} $Z4H/z4h.zsh || return
|
||||
|
||||
[[ -v functions[compinit] ]] && unfunction compinit
|
||||
autoload -Uz +X compinit || return
|
||||
local orig="bindkey '^i' | IFS=\$' \t' read -A _i_line"
|
||||
local replacement="_i_line=( '\"^I\"' z4h-fzf-complete )"
|
||||
print -r -- ${functions[compinit]/$orig/$replacement} >$Z4H/zsh4humans/fn/tmp.$$.compinit || return
|
||||
zf_mv -- $Z4H/zsh4humans/fn/tmp.$$.compinit $Z4H/zsh4humans/fn/-z4h-compinit-impl || return
|
||||
z4h compile -- $Z4H/zsh4humans/fn/-z4h-compinit-impl || return
|
||||
autoload -Uz -- -z4h-compinit-impl
|
||||
|
||||
function compinit() {}
|
Loading…
Add table
Add a link
Reference in a new issue