NixOS zsh prompt option order
On the NixOS options page, you’ll find the following prompt options for zsh:
interactiveShellInitloginShellInitpromptInitshellInit
Errors like
zsh-syntax-highlighting: unhandled ZLE widget 'autosuggest-accept'
zsh-syntax-highlighting: (This is sometimes caused by doing `bindkey <keys> autosuggest-accept` without creating the 'autosuggest-accept' widget with `zle -N` or `zle -C`.)
may pop up in the prompt, depending on the order of commands executed on setup.
The following list represents the login files that the values of the options are composed into and the order in which they are loaded:
- zshenv
shellInit
- zprofile
loginShellInit
- zshrc
interactiveShellInitpromptInit
Keep that in mind when editing any of the *Init options :wink:.