Mercurial > nixos
diff zsh.nix @ 0:face7f4d84f7
Initial commit
| author | Yasuri <yasuri@charliesmp.net> |
|---|---|
| date | Mon, 28 Sep 2026 13:10:19 -0500 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zsh.nix Mon Sep 28 13:10:19 2026 -0500 @@ -0,0 +1,40 @@ +{ config, pkgs, ... }: + +{ + programs.zsh = { + enable = true; + enableCompletion = true; + autosuggestion.enable = true; + syntaxHighlighting.enable = true; + + history = { + size = 10000; + save = 10000; + ignoreAllDups = true; + share = true; + path = "${config.xdg.dataHome}/zsh/history"; + }; + + shellAliases = { + ll = "ls -lah"; + rebuild = "sudo nixos-rebuild switch --flake ."; + hf = "hyfetch"; + fastfetch = "hyfetch"; + ff = "hyfetch"; + }; + + initContent = '' + setopt autocd interactivecomments + bindkey -e + zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' + zstyle ':completion:*' menu select + hyfetch + ''; + }; + + # keeps you in zsh inside nix-shell and nix develop + programs.nix-your-shell = { + enable = true; + enableZshIntegration = true; + }; +}
