zsh
This commit is contained in:
parent
ed93f5ec7e
commit
f04f858aeb
3 changed files with 1882 additions and 0 deletions
|
|
@ -15,5 +15,6 @@
|
||||||
./rofi.nix
|
./rofi.nix
|
||||||
# ./sops.nix
|
# ./sops.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
|
./zsh
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1842
home/zsh/.p10k.zsh
Normal file
1842
home/zsh/.p10k.zsh
Normal file
File diff suppressed because it is too large
Load diff
39
home/zsh/default.nix
Normal file
39
home/zsh/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
{pkgs, ...}: let
|
||||||
|
aliases = {
|
||||||
|
"." = "source";
|
||||||
|
ls = "EXA_COLORS='xx=2;37' ${pkgs.eza}/bin/eza -g --git --group-directories-first";
|
||||||
|
l = "ls -aal";
|
||||||
|
atree = "ls -alT";
|
||||||
|
tree = "ls -lT";
|
||||||
|
grep = "grep --color=auto";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableAutosuggestions = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
defaultKeymap = "viins";
|
||||||
|
autocd = false;
|
||||||
|
history.share = false;
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "powerlevel10k";
|
||||||
|
src = pkgs.zsh-powerlevel10k;
|
||||||
|
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
initExtra = ''
|
||||||
|
# p10k instant prompt
|
||||||
|
P10K_INSTANT_PROMPT="$XDG_CACHE_HOME/p10k-instant-prompt-''${(%):-%n}.zsh"
|
||||||
|
[[ ! -r "$P10K_INSTANT_PROMPT" ]] || source "$P10K_INSTANT_PROMPT"
|
||||||
|
|
||||||
|
source ${./p10k.zsh}
|
||||||
|
|
||||||
|
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
||||||
|
bindkey '^ ' autosuggest-accept
|
||||||
|
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
'';
|
||||||
|
shellAliases = aliases;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue