mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Merge pull request #65 from bchretien/topic/window-rename
new_window: disable allow-rename if a window name was given
This commit is contained in:
@@ -22,6 +22,10 @@ new_window() {
|
|||||||
if [ -n "$2" ]; then local command=("$2"); fi
|
if [ -n "$2" ]; then local command=("$2"); fi
|
||||||
|
|
||||||
tmuxifier-tmux new-window -t "$session:" "${winarg[@]}" "${command[@]}"
|
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)"
|
window="$(__get_current_window_index)"
|
||||||
__go_to_window_or_session_path
|
__go_to_window_or_session_path
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user