1 { config, pkgs, lib, ... }:
5 # Show current working directory in VTE terminals window title.
6 # Supports both bash and zsh, requires interactive shell.
7 . ${pkgs.vte.override { gtkVersion = null; }}/etc/profile.d/vte.sh
15 maintainers = lib.teams.gnome.members;
20 programs.bash.vteIntegration = lib.mkOption {
22 type = lib.types.bool;
24 Whether to enable Bash integration for VTE terminals.
25 This allows it to preserve the current directory of the shell
30 programs.zsh.vteIntegration = lib.mkOption {
32 type = lib.types.bool;
34 Whether to enable Zsh integration for VTE terminals.
35 This allows it to preserve the current directory of the shell
42 config = lib.mkMerge [
43 (lib.mkIf config.programs.bash.vteIntegration {
44 programs.bash.interactiveShellInit = lib.mkBefore vteInitSnippet;
47 (lib.mkIf config.programs.zsh.vteIntegration {
48 programs.zsh.interactiveShellInit = vteInitSnippet;