zsh: configure p10k
This commit is contained in:
@@ -30,7 +30,7 @@ in
|
|||||||
./ssh.nix
|
./ssh.nix
|
||||||
./sublime-music.nix
|
./sublime-music.nix
|
||||||
./vlc.nix
|
./vlc.nix
|
||||||
./zsh.nix
|
./zsh
|
||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
@@ -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)
|
1635
modules/home-manager/zsh/p10k.zsh
Normal file
1635
modules/home-manager/zsh/p10k.zsh
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user