nix-conf/modules/home-manager/zsh/default.nix

33 lines
745 B
Nix
Raw Normal View History

2024-04-11 12:31:37 +00:00
{
config,
lib,
2024-04-12 11:45:57 +00:00
pkgs,
2024-04-11 12:31:37 +00:00
...
}: {
options = {
zsh.enable = lib.mkEnableOption "enable zsh";
};
config = lib.mkIf config.zsh.enable {
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
# enableBashCompletion = true;
oh-my-zsh = {
enable = true;
theme = "ys";
plugins = ["git" "colored-man-pages" "extract" "sudo"];
};
initExtra = ''
2024-04-12 11:45:57 +00:00
eval "$(${lib.getExe pkgs.direnv} hook zsh)"
2024-04-11 12:31:37 +00:00
eval "$(starship init zsh)"
'';
};
home.shellAliases = {
vv = "nvim";
yt-dlp-1080 = "yt-dlp -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'";
2024-04-11 12:31:37 +00:00
};
};
}