1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 03:09:47 +01:00

termite: add option to enable VTE integration (#1917)

This also migrates to using the VTE module directly, centralising bug
fixes.

Fixes #1909.
This commit is contained in:
Bruno BELANYI 2021-04-21 01:45:39 +02:00 committed by GitHub
parent 0c236e13bc
commit db00b39a9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,13 +6,6 @@ let
cfg = config.programs.termite; cfg = config.programs.termite;
vteInitStr = ''
# See https://github.com/thestinger/termite#id1
if [[ $TERM == xterm-termite ]]; then
. ${pkgs.termite.vte-ng}/etc/profile.d/vte.sh
fi
'';
in { in {
options = { options = {
programs.termite = { programs.termite = {
@ -50,6 +43,10 @@ in {
''; '';
}; };
enableVteIntegration = mkEnableOption "Shell VTE integration" // {
default = true;
};
fullscreen = mkOption { fullscreen = mkOption {
default = null; default = null;
type = types.nullOr types.bool; type = types.nullOr types.bool;
@ -381,7 +378,7 @@ in {
${cfg.hintsExtra} ${cfg.hintsExtra}
''; '';
programs.bash.initExtra = vteInitStr; programs.bash.enableVteIntegration = lib.mkDefault cfg.enableVteIntegration;
programs.zsh.initExtra = vteInitStr; programs.zsh.enableVteIntegration = lib.mkDefault cfg.enableVteIntegration;
}); });
} }