Files
ccl-nixos-dotfiles/modules/cli/shell/zsh.nix
2025-04-19 12:42:19 +08:00

50 lines
1.0 KiB
Nix

{
config,
lib,
pkgs,
...
}:
lib.my.makeSwitch {
inherit config;
default = true;
optionName = "default zsh settings";
optionPath = [
"cli"
"shell"
"zsh"
];
config' = {
my.home =
let
stateHome = config.my.home.xdg.stateHome;
in
{
home.packages = [ pkgs.omz ];
programs.zsh = {
enable = true;
dotDir = ".config/zsh";
history = {
path = "${stateHome}/zsh_history";
ignorePatterns = [
"la"
];
};
initExtra = ''
source ${pkgs.omz}/share/omz/omz.zsh
'';
sessionVariables = {
_ZL_DATA = "${stateHome}/zlua";
_FZF_HISTORY = "${stateHome}/fzf_history";
};
shellAliases = {
ls = "lsd";
svim = "sudoedit";
nf = "neofetch";
tmux = "tmux -T RGB,focus,overline,mouse,clipboard,usstyle";
pastart = "pasuspender true";
};
};
};
};
}