New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/zsh: move zsh setopt #58012
nixos/zsh: move zsh setopt #58012
Conversation
cc @Mic92 |
I think I have to skip on this one, because I don't know what other consequences moving setopt down could be. I could imagine that some other plugins rely on having setopt set upfront. |
cc @Ma27 |
hmm sorry, totally missed that one... I'll try to have a look at this tonight :) |
I think that the change itself seems reasonable. IMHO the However this may break setups where scripts e.g. in |
@Ma27 i ask you to help compile the changelog, I have a bad english. |
It should be sufficient to add a All options can be referenced using The changelog can be build by running A pretty helpful guide for |
@Ma27 thanks. PR updated. |
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.
Updated the changelog. I guess this should be fine now. Let's wait for ofBorg to finish and merge then 👍
With a changelog entry which warns about the possible compatibility break this should be fine. |
@Izorkin thanks! |
Since a while ago[1], the setting of ZSH options is now done after interactiveShellInit, so using unsetopt SHARE_HISTORY doesn't work anymore because it is set *afterwards*. Instead of setting these options, we now use the setOptions option instead and override it with exactly the options I want to be set. Additionally, compinit is also no longer necessary, because it is done by default and invoking it on our own is just redundant. [1]: NixOS/nixpkgs#58012 Signed-off-by: aszlig <aszlig@nix.build>
Motivation for this change
When installing the oh-my-zsh plugin, it additionally sets its setopt parameters. This PR transfers the setopt parameter after the plug-in is loaded so that you can reassign the parameters. For example, delete the parameters that are loaded plugin oh-my-zsh.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)