10 # Show current working directory in VTE terminals window title.
11 # Supports both bash and zsh, requires interactive shell.
12 . ${pkgs.vte.override { gtkVersion = null; }}/etc/profile.d/vte.sh
20 maintainers = lib.teams.gnome.members;
25 programs.bash.vteIntegration = lib.mkOption {
27 type = lib.types.bool;
29 Whether to enable Bash integration for VTE terminals.
30 This allows it to preserve the current directory of the shell
35 programs.zsh.vteIntegration = lib.mkOption {
37 type = lib.types.bool;
39 Whether to enable Zsh integration for VTE terminals.
40 This allows it to preserve the current directory of the shell
47 config = lib.mkMerge [
48 (lib.mkIf config.programs.bash.vteIntegration {
49 programs.bash.interactiveShellInit = lib.mkBefore vteInitSnippet;
52 (lib.mkIf config.programs.zsh.vteIntegration {
53 programs.zsh.interactiveShellInit = vteInitSnippet;