nixos-config/config/programs/zsh.nix

21 lines
427 B
Nix
Raw Normal View History

desktop: _: {
2022-01-15 15:09:02 +00:00
programs = {
zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
enableSyntaxHighlighting = true;
enableVteIntegration = desktop;
2022-01-15 15:09:02 +00:00
autocd = true;
2023-04-05 07:56:35 +00:00
loginExtra =
if desktop
then ''
if [[ -z "$DISPLAY" ]] && [[ $(tty) = "/dev/tty1" ]]; then
exec sway
fi
''
else "";
2022-01-15 15:09:02 +00:00
};
};
}