Skip to content

Commit

Permalink
Merge pull request jimeh#65 from bchretien/topic/window-rename
Browse files Browse the repository at this point in the history
new_window: disable allow-rename if a window name was given
  • Loading branch information
jimeh committed Dec 20, 2015
2 parents 92d188f + 6f87731 commit dce4fb3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/layout-helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit dce4fb3

Please sign in to comment.