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