hchbaw/auto-fu.zsh

with-afu-zle-rebinding:10: command not found: afu-zle-aysce-install

Opened this issue · 3 comments

joe9 commented

Hello,

The below error is showing up once in a while when I start a new terminal.

with-afu-zle-rebinding:10: command not found: afu-zle-aysce-install

Thanks
Joe

Hi, Joe!

Sorry, I've not seen this error. Please show below command output.

% echo $functions[afu-initialize-rebinds]

I have the same problem too.
Thanks a lot.

echo $functions[afu-initialize-rebinds]
        setopt localoptions extendedglob
        local -a match mbegin mend
        local -a rs
        rs=($afu_zles complete-word list-choices ${(k)afu_rebinds_post}) 
        eval "
    function with-afu-zle-rebinding () {
      local -a restores
      {
        eval \"\$("${rs/(#b)(*)/afu-rebind-expand restores $match;}")\"
        function afu-zle-force-install () {
          "$(echo ${afu_zles/(#b)(*)/ \
              zle -N ${match} ${match}-by-keymap;})"
          zle -C complete-word .complete-word _main_complete
          zle -C list-choices .list-choices _main_complete
          "$(echo ${(v)afu_rebinds_pre/(#b)(*)/$match;})"
        }
        afu-zle-force-install
        { \"\$@\" }
      } always {
        eval \"function afu-zle-rebind-restore () { \${(j.;.)restores} }\"
        afu-zle-rebind-restore

        # XXX: redefined!
        function "\$0" () {
          {
            afu-zle-force-install
            { \"\$@\" }
          } always {
            afu-zle-rebind-restore
          }
        }
      }
    }
  "

Thanks your post @monkey413 .
I'm puzzled why aysce comming...