summaryrefslogblamecommitdiffstats
path: root/programs/zsh.nix
blob: 8d8fc91fb28a72f83bdeb738af0e878faa6bba81 (plain) (tree)






















                                                                    
{ config, pkgs, ... }:
{
    programs.zsh = {
        enable = true;
        shellAliases = {
            ll = "ls -l";
            unixos = "sudo nixos-rebuild switch --flake /etc/nixos";
            uhome = "home-manager switch --flake /etc/nixos";
        };
        history = {
            size = 10000;
            path = "${config.xdg.dataHome}/zsh/history";
            ignoreDups = true;
        };

        oh-my-zsh = {
            enable = true;
            plugins = [ "git" "thefuck" "pass" ];
            theme = "dst";
        };
        syntaxHighlighting.enable = true;
    };
}