nixos-config/home-manager/zsh.nix

22 lines
492 B
Nix
Raw Normal View History

2022-08-18 19:15:03 +00:00
{ config, lib, pkgs, user, theme, ... }:
let
zsh_autosuggest_highlight_style = if theme == "light" then "fg=180" else "fg=10";
in
{
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
history.size = 10000;
sessionVariables = {
2022-08-18 19:15:03 +00:00
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = zsh_autosuggest_highlight_style;
};
2022-07-07 15:22:12 +00:00
shellAliases = {
ls = "exa --group-directories-first --git";
neovide = "neovide --multigrid";
2022-07-07 15:22:12 +00:00
};
};
}