gnome-terminal: enable VTE OSC7 support for bash and zsh

(cherry picked from commit b3d73e0aff)
This commit is contained in:
Olli Helenius 2019-01-03 17:35:15 +02:00 committed by Robert Helgesson
parent af94896ba1
commit e57e34f799
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -6,6 +6,11 @@ let
cfg = config.programs.gnome-terminal; cfg = config.programs.gnome-terminal;
vteInitStr = ''
# gnome-terminal: Show current directory in the terminal window title.
. ${pkgs.gnome3.vte}/etc/profile.d/vte.sh
'';
profileColorsSubModule = types.submodule ( profileColorsSubModule = types.submodule (
{ ... }: { { ... }: {
options = { options = {
@ -165,5 +170,8 @@ in
// mapAttrs' (n: v: // mapAttrs' (n: v:
nameValuePair ("${dconfPath}/profiles:/:${n}") (buildProfileSet v) nameValuePair ("${dconfPath}/profiles:/:${n}") (buildProfileSet v)
) cfg.profile; ) cfg.profile;
programs.bash.initExtra = mkBefore vteInitStr;
programs.zsh.initExtra = vteInitStr;
}; };
} }