summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/apprt/gtk/class/tab.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/apprt/gtk/class/tab.zig b/src/apprt/gtk/class/tab.zig
index 941fa00a9..c9928be8b 100644
--- a/src/apprt/gtk/class/tab.zig
+++ b/src/apprt/gtk/class/tab.zig
@@ -389,8 +389,14 @@ pub const Tab = extern struct {
// the terminal title if it exists, otherwise a default string.
const plain = plain: {
const default = "Ghostty";
+ const config_title: ?[*:0]const u8 = title: {
+ const config = config_ orelse break :title null;
+ break :title config.get().title orelse null;
+ };
+
const plain = override_ orelse
terminal_ orelse
+ config_title orelse
break :plain default;
break :plain std.mem.span(plain);
};