summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/options-table.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2013-10-10 11:56:51 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2013-10-10 11:56:51 +0000
commit66f367304416c4afdc8c01210d57c1eef7f4c636 (patch)
treec0242ba4dc683f27bbe9b2779db910905dcac8ab /usr.bin/tmux/options-table.c
parentf438bb37b11698b4c634cbcb5eb069176779f289 (diff)
Add automatic-rename-format option allowing automatic rename to use
something other than pane_current_command.
Diffstat (limited to 'usr.bin/tmux/options-table.c')
-rw-r--r--usr.bin/tmux/options-table.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c
index 7bbb34195e6..0f6e2e29c49 100644
--- a/usr.bin/tmux/options-table.c
+++ b/usr.bin/tmux/options-table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options-table.c,v 1.40 2013/10/10 11:50:20 nicm Exp $ */
+/* $OpenBSD: options-table.c,v 1.41 2013/10/10 11:56:50 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -482,6 +482,11 @@ const struct options_table_entry window_options_table[] = {
.default_num = 1
},
+ { .name = "automatic-rename-format",
+ .type = OPTIONS_TABLE_STRING,
+ .default_str = "#{?pane_in_mode,[tmux],#{pane_current_command}}#{?pane_dead,[dead],}"
+ },
+
{ .name = "c0-change-trigger",
.type = OPTIONS_TABLE_NUMBER,
.default_num = 250,