romkatv / zsh-defer

Deferred execution of Zsh commands
GNU General Public License v3.0
343 stars 11 forks source link

Using $0 from autoload function #2

Closed psprint closed 4 years ago

psprint commented 4 years ago

I'm not currently at a computer, so I cannot check, however shouldn't the source line:

if (( ! $+_defer_tasks )); then
    source ${0:A:h}/zsh-defer.plugin.zsh
fi

use something like $funcfiletrace or some parameter like $ZSH_DEFER_DIR?

romkatv commented 4 years ago

Thanks for the report! Fixed.