Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Warn about bad variable usage pattern for Zsh"
This reverts commit 42332c6. Reason: maintainer of zsh-syntax-highlighting [doesn’t like][1] `warn_nested_var`. The other option, `warn_create_global`, might be fine, but more experiments should be done with it. [1]: zsh-users/zsh-syntax-highlighting#781 (comment)
- Loading branch information
1408d5a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean, "doesn't like"? zsh-syntax-highlighting tries hard to work everywhere, including under very unusual setups. If z-sy-h and WARN_NESTED_VAR don't play nice together out of the box, that's a bug that will be fixed.
1408d5a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielshahaf I thought you made it clear in the comment about this. You said that you were unhappy about adding
typeset -g
to every usage, and I think it’s fair (that you dislike it). This commit is to disable it in my dotfile.