mirror of
https://github.com/sstent/vmimages.git
synced 2026-02-06 12:32:54 +00:00
added zsh
This commit is contained in:
@@ -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"];
|
||||
|
||||
1618
home-manager/users/sstent/p10k.zsh
Normal file
1618
home-manager/users/sstent/p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user