From fa4a576703cb8677989eb0c3d33d834ac39dce79 Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 28 Jan 2023 09:29:55 +0000 Subject: [PATCH] refactor: zsh: enable VTE with `programs.zsh.vteIntegration` instead of manual sourcing --- hosts/common/home/zsh/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hosts/common/home/zsh/default.nix b/hosts/common/home/zsh/default.nix index 276cde910..ee3e1154a 100644 --- a/hosts/common/home/zsh/default.nix +++ b/hosts/common/home/zsh/default.nix @@ -24,9 +24,6 @@ let source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source ${pkgs.zsh-prezto}/share/zsh-prezto/init.zsh ''; - vte-init = '' - source ${pkgs.vte}/etc/profile.d/vte.sh - ''; in lib.mkIf config.sane.home-manager.enable { @@ -39,6 +36,7 @@ lib.mkIf config.sane.home-manager.enable ".cache/gitstatus" ]; + programs.zsh = { enable = true; histFile = "$HOME/.local/share/zsh/history"; @@ -67,7 +65,6 @@ lib.mkIf config.sane.home-manager.enable (builtins.readFile ./p10k.zsh) + p10k-overrides + prezto-init - + vte-init + '' # zmv is a way to do rich moves/renames, with pattern matching/substitution. # see for an example: @@ -96,6 +93,7 @@ lib.mkIf config.sane.home-manager.enable ''; syntaxHighlighting.enable = true; + vteIntegration = true; }; # prezto = oh-my-zsh fork; controls prompt, auto-completion, etc.