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:
parent
0c236e13bc
commit
db00b39a9a
1 changed files with 6 additions and 9 deletions
|
@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue