summaryrefslogblamecommitdiffstats
path: root/programs/zsh.nix
blob: 03a096fc3f375c21c7be6655cf17f1b7a118b5e6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                      



                                





                                                                    
                                                                    














                                                        
{ config, pkgs, ... }:
{
    home.packages = with pkgs; [
        inotify-tools
    ];

    programs.zsh = {
        enable = true;
        shellAliases = {
            ll = "ls -l";
            unixos = "sudo nixos-rebuild switch --flake /etc/nixos";
            uhome = "home-manager switch --flake /etc/nixos";
            watchfile = "/etc/nixos/programs/scripts/watchfile.sh ";
        };
        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;
    };
}