1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +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;
vteInitStr = ''
# See https://github.com/thestinger/termite#id1
if [[ $TERM == xterm-termite ]]; then
. ${pkgs.termite.vte-ng}/etc/profile.d/vte.sh
fi
'';
in {
options = {
programs.termite = {
@ -50,6 +43,10 @@ in {
'';
};
enableVteIntegration = mkEnableOption "Shell VTE integration" // {
default = true;
};
fullscreen = mkOption {
default = null;
type = types.nullOr types.bool;
@ -381,7 +378,7 @@ in {
${cfg.hintsExtra}
'';
programs.bash.initExtra = vteInitStr;
programs.zsh.initExtra = vteInitStr;
programs.bash.enableVteIntegration = lib.mkDefault cfg.enableVteIntegration;
programs.zsh.enableVteIntegration = lib.mkDefault cfg.enableVteIntegration;
});
}