This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-config/home-manager/zsh.nix

22 lines
492 B
Nix

{ 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 = {
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = zsh_autosuggest_highlight_style;
};
shellAliases = {
ls = "exa --group-directories-first --git";
neovide = "neovide --multigrid";
};
};
}