nixos/home/zsh/default.nix

37 lines
977 B
Nix
Raw Normal View History

2024-02-11 06:53:37 +00:00
{...}: {
programs.zsh = {
enable = true;
enableCompletion = true;
enableAutosuggestions = true;
2024-02-11 06:53:37 +00:00
syntaxHighlighting.enable = true;
enableVteIntegration = true;
autocd = true;
historySubstringSearch.enable = true;
history = {
extended = true;
ignoreDups = true;
ignoreSpace = true;
};
shellAliases = {
2024-03-27 14:37:11 +00:00
nixos-repl = "nixos-rebuild repl";
nixos-test = "sudo nixos-rebuild test";
nixos-boot = "sudo nixos-rebuild boot";
nixos-switch = "sudo nixos-rebuild switch";
gsa = "git-sync-all";
};
2024-02-11 06:53:37 +00:00
oh-my-zsh = {
enable = true;
plugins = ["colored-man-pages" "lol" "rand-quote"];
theme = "";
};
completionInit = ''
autoload -Uz +X compinit && compinit
## case insensitive path-completion
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
zstyle ':completion:*' menu select
'';
initExtra = "source ${./transient.zsh}\n";
2024-02-11 06:53:37 +00:00
};
}