3 { config, pkgs, lib, ... }:
10 # Show current working directory in VTE terminals window title.
11 # Supports both bash and zsh, requires interactive shell.
12 . ${pkgs.vte}/etc/profile.d/vte.sh
20 maintainers = teams.gnome.members;
25 programs.bash.vteIntegration = mkOption {
28 description = lib.mdDoc ''
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 = mkOption {
38 description = lib.mdDoc ''
39 Whether to enable Zsh integration for VTE terminals.
40 This allows it to preserve the current directory of the shell
48 (mkIf config.programs.bash.vteIntegration {
49 programs.bash.interactiveShellInit = mkBefore vteInitSnippet;
52 (mkIf config.programs.zsh.vteIntegration {
53 programs.zsh.interactiveShellInit = vteInitSnippet;