Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zshrc: Reset $REPLY parameter before calling prompt token functions
It may be tempting to write a prompt token function like this if (( ${+commands[kerl]} )) REPLY=$(kerl prompt '<%s> ') But if the command does not exist user may be end up with duplicated tokens in her prompt. Resetting $REPLY parameter before calling user-defined functions prevents this problem.
- Loading branch information