refactor: zsh: enable VTE with programs.zsh.vteIntegration instead of manual sourcing

This commit is contained in:
2023-01-28 09:29:55 +00:00
parent abb0a3c94e
commit fa4a576703

View File

@@ -24,9 +24,6 @@ let
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ${pkgs.zsh-prezto}/share/zsh-prezto/init.zsh source ${pkgs.zsh-prezto}/share/zsh-prezto/init.zsh
''; '';
vte-init = ''
source ${pkgs.vte}/etc/profile.d/vte.sh
'';
in in
lib.mkIf config.sane.home-manager.enable lib.mkIf config.sane.home-manager.enable
{ {
@@ -39,6 +36,7 @@ lib.mkIf config.sane.home-manager.enable
".cache/gitstatus" ".cache/gitstatus"
]; ];
programs.zsh = { programs.zsh = {
enable = true; enable = true;
histFile = "$HOME/.local/share/zsh/history"; histFile = "$HOME/.local/share/zsh/history";
@@ -67,7 +65,6 @@ lib.mkIf config.sane.home-manager.enable
(builtins.readFile ./p10k.zsh) (builtins.readFile ./p10k.zsh)
+ p10k-overrides + p10k-overrides
+ prezto-init + prezto-init
+ vte-init
+ '' + ''
# 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/>
@@ -96,6 +93,7 @@ lib.mkIf config.sane.home-manager.enable
''; '';
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
vteIntegration = true;
}; };
# prezto = oh-my-zsh fork; controls prompt, auto-completion, etc. # prezto = oh-my-zsh fork; controls prompt, auto-completion, etc.