added zsh

This commit is contained in:
2023-03-11 22:47:11 +00:00
parent de497dd612
commit bdfe6cae0e
3 changed files with 1672 additions and 1 deletions

View File

@@ -95,7 +95,36 @@ programs = {
man.enable = true;
nix-index.enable = true;
yt-dlp.enable = true;
zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
enableSyntaxHighlighting = true;
autocd = true;
defaultKeymap = "viins";
history.expireDuplicatesFirst = true;
initExtraBeforeCompInit = ''
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
fi
'';
plugins = [
{
file = "powerlevel10k.zsh-theme";
name = "powerlevel10k";
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k";
}
{
file = "p10k.zsh";
name = "powerlevel10k-config";
src = "${./.}";
}
];
};
bash = {
enable = true;
historyControl = ["ignorespace"];

File diff suppressed because it is too large Load Diff