From 6f8773133dd6b8ba7f30a3bc9387f06e226e01fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Chr=C3=A9tien?= Date: Mon, 23 Nov 2015 00:08:38 +0900 Subject: [PATCH] new_window: disable allow-rename if a window name was given --- lib/layout-helpers.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/layout-helpers.sh b/lib/layout-helpers.sh index e8f012c..7ac787e 100644 --- a/lib/layout-helpers.sh +++ b/lib/layout-helpers.sh @@ -22,6 +22,10 @@ new_window() { if [ -n "$2" ]; then local command=("$2"); fi tmuxifier-tmux new-window -t "$session:" "${winarg[@]}" "${command[@]}" + + # Disable renaming if a window name was given. + if [ -n "$1" ]; then tmuxifier-tmux set-option -t "$1" allow-rename off; fi + window="$(__get_current_window_index)" __go_to_window_or_session_path }