fix(tmux): avoid index error creating new window
And ensure new windows is created after the last one
This commit is contained in:
parent
5e6fbc9eba
commit
d355e9bc01
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ tmux_hsplit() {
|
|||
tmux_neww() {
|
||||
local name="$1"
|
||||
debug "execute neww with name '${name}'"
|
||||
local command=(tmux new-window -t "$SESSION" -c "$CURRENT_PATH")
|
||||
local command=(tmux new-window -t "${SESSION}:$" -c "$CURRENT_PATH" -a)
|
||||
if [[ -n "$name" ]]; then
|
||||
command+=(-n "$name")
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue