Mercurial > nixos
comparison zsh.nix @ 0:face7f4d84f7
Initial commit
| author | Yasuri <yasuri@charliesmp.net> |
|---|---|
| date | Mon, 28 Sep 2026 13:10:19 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:face7f4d84f7 |
|---|---|
| 1 { config, pkgs, ... }: | |
| 2 | |
| 3 { | |
| 4 programs.zsh = { | |
| 5 enable = true; | |
| 6 enableCompletion = true; | |
| 7 autosuggestion.enable = true; | |
| 8 syntaxHighlighting.enable = true; | |
| 9 | |
| 10 history = { | |
| 11 size = 10000; | |
| 12 save = 10000; | |
| 13 ignoreAllDups = true; | |
| 14 share = true; | |
| 15 path = "${config.xdg.dataHome}/zsh/history"; | |
| 16 }; | |
| 17 | |
| 18 shellAliases = { | |
| 19 ll = "ls -lah"; | |
| 20 rebuild = "sudo nixos-rebuild switch --flake ."; | |
| 21 hf = "hyfetch"; | |
| 22 fastfetch = "hyfetch"; | |
| 23 ff = "hyfetch"; | |
| 24 }; | |
| 25 | |
| 26 initContent = '' | |
| 27 setopt autocd interactivecomments | |
| 28 bindkey -e | |
| 29 zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' | |
| 30 zstyle ':completion:*' menu select | |
| 31 hyfetch | |
| 32 ''; | |
| 33 }; | |
| 34 | |
| 35 # keeps you in zsh inside nix-shell and nix develop | |
| 36 programs.nix-your-shell = { | |
| 37 enable = true; | |
| 38 enableZshIntegration = true; | |
| 39 }; | |
| 40 } |
