pkgx icon indicating copy to clipboard operation
pkgx copied to clipboard

Shell hook needs to work if user already has a chdir shell hook

Open mxcl opened this issue 2 years ago • 2 comments

Need thoughts on this, though I think we can release without solving it and see what happens.

mxcl avatar Jun 21 '22 14:06 mxcl

https://github.com/rothgar/mastering-zsh/blob/master/docs/config/hooks.md#add-function-to-hook

jhheider avatar Jun 21 '22 14:06 jhheider

    echo >> ~/.zshrc
    echo '# added by tea' >> ~/.zshrc
    echo 'tea-chpwd() { source <(tea -Eds) }' >> ~/.zshrc
    echo 'add-zsh-hook -Uz chpwd tea-chpwd' >> ~/.zshrc

most likely.

jhheider avatar Jun 21 '22 14:06 jhheider