zsh: configure p10k

This commit is contained in:
2022-12-21 13:08:23 +00:00
parent b3ad0f8f1f
commit 1808d153b2
3 changed files with 1639 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ in
./ssh.nix ./ssh.nix
./sublime-music.nix ./sublime-music.nix
./vlc.nix ./vlc.nix
./zsh.nix ./zsh
]; ];
options = { options = {

View File

@@ -14,11 +14,8 @@ lib.mkIf config.sane.home-manager.enable
dotDir = ".config/zsh"; dotDir = ".config/zsh";
history.path = "/home/colin/.local/share/zsh/history"; history.path = "/home/colin/.local/share/zsh/history";
initExtraBeforeCompInit = '' # powerlevel10k prompt config
# p10k instant prompt initExtraBeforeCompInit = builtins.readFile ./p10k.zsh;
# run p10k configure to configure, but it can't write out its file :-(
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
'';
initExtra = '' initExtra = ''
# zmv is a way to do rich moves/renames, with pattern matching/substitution. # zmv is a way to do rich moves/renames, with pattern matching/substitution.
# see for an example: <https://filipe.kiss.ink/zmv-zsh-rename/> # see for an example: <https://filipe.kiss.ink/zmv-zsh-rename/>
@@ -47,7 +44,7 @@ lib.mkIf config.sane.home-manager.enable
"utility" "utility"
"completion" "completion"
"prompt" "prompt"
"git" "git" # TODO: delete? this defines git aliases i don't use, but might be used by prompt
]; ];
prompt.theme = "powerlevel10k"; prompt.theme = "powerlevel10k";
utility.safeOps = false; # disable `mv` confirmation (and supposedly `rm`, too) utility.safeOps = false; # disable `mv` confirmation (and supposedly `rm`, too)

File diff suppressed because it is too large Load Diff