You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I write a bunch of ZSH stuff (mainly for my .zshrc) and despite zsh begin removed from the supported list it still tries to run shift on editors with ZSH "Shell Script" contents.
The main killer for me is that is converts (( $+commands[zsh] )) into (( $ + commands[zsh] )) which always returns true.
if(($+commands[zsh]));thenecho found zsh
fi
What's the right way to do this?
Should there be a new "language" for ZSH files?
Should shell-format detect that a "Shell Script" file is ZSH and not run whatever formatter is being run?
The text was updated successfully, but these errors were encountered:
I write a bunch of ZSH stuff (mainly for my
.zshrc
) and despitezsh
begin removed from the supported list it still tries to runshift
on editors with ZSH "Shell Script" contents.The main killer for me is that is converts
(( $+commands[zsh] ))
into(( $ + commands[zsh] ))
which always returns true.What's the right way to do this?
Should there be a new "language" for ZSH files?
Should
shell-format
detect that a "Shell Script" file is ZSH and not run whatever formatter is being run?The text was updated successfully, but these errors were encountered: