Zsh: Difference between revisions
m →How to use plugins?: 1) Added links for plugin managers 2) Added Antidote to plugin managers and code example |
|||
| Line 136: | Line 136: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
environment.shells = with pkgs; [ zsh ]; | environment.shells = with pkgs; [ zsh ]; | ||
</syntaxhighlight> | |||
==== Hide configuration for new users ==== | |||
Meaning this message:<syntaxhighlight lang="zsh"> | |||
This is the Z Shell configuration function for new users, | |||
zsh-newuser-install. | |||
You are seeing this message because you have no zsh startup files | |||
(the files .zshenv, .zprofile, .zshrc, .zlogin in the directory | |||
~). This function can help you with a few settings that should | |||
make your use of the shell easier. | |||
You can: | |||
(q) Quit and do nothing. The function will be run again next time. | |||
(0) Exit, creating the file ~/.zshrc containing just a comment. | |||
That will prevent this function being run again. | |||
(1) Continue to the main menu. | |||
--- Type one of the keys in parentheses --- | |||
</syntaxhighlight>You can hide this message by adding following line to the system configuration:<syntaxhighlight lang="nixos"> | |||
# Prevent the new user dialog in zsh | |||
system.userActivationScripts.zshrc = "touch .zshrc"; | |||
</syntaxhighlight> | </syntaxhighlight> | ||