nixos-config/modules/shell/zsh.nix
2023-06-06 23:58:36 -04:00

34 lines
816 B
Nix

{ pkgs, ... }:
{
programs = {
zsh = {
enable = true;
autosuggestions.enable = true; # Auto suggest options and highlights syntax, searches in history for options
syntaxHighlighting.enable = true;
enableCompletion = true;
histSize = 100000;
ohMyZsh = {
# Extra plugins for zsh
enable = true;
plugins = [ "git" ];
};
shellInit = '' # Zsh theme
# Spaceship
source ${pkgs.spaceship-prompt}/share/zsh/site-functions/prompt_spaceship_setup
autoload -U promptinit; promptinit
# Hook direnv
#emulate zsh -c "$(direnv hook zsh)"
# Swag
${pkgs.nitch}/bin/nitch
#eval "$(direnv hook zsh)"
eval "$(atuin init zsh)"
clear
pfetch
'';
};
};
}