36 lines
936 B
Nix
36 lines
936 B
Nix
{...}: {
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
enableVteIntegration = true;
|
|
autocd = true;
|
|
historySubstringSearch.enable = true;
|
|
history = {
|
|
extended = true;
|
|
ignoreDups = true;
|
|
ignoreSpace = true;
|
|
};
|
|
shellAliases = {
|
|
nixos-test = "sudo nixos-rebuild test";
|
|
nixos-boot = "sudo nixos-rebuild boot";
|
|
nixos-switch = "sudo nixos-rebuild switch";
|
|
gsa = "git-sync-all";
|
|
};
|
|
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";
|
|
};
|
|
}
|