Skip to content

Commit

Permalink
Don't create duplicate panes
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertAudi committed Apr 12, 2023
1 parent 97a8ade commit 342e26f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/bin/tsm
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function __tsm::utils::trim::both() {
# Usage: __tsm::helpers::add_window <session_name> <window_name> <window_working_directory>
function __tsm::helpers::add_window() {
local session_name="$1" window_name="$2" working_directory="$3"
command tmux new-window -d -t "$session_name:" -n "$window_name" -c "$working_directory"
command tmux new-window -d -S -t "$session_name:" -n "$window_name" -c "$working_directory"
}

# Dump the list of tmux panes
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/add_window.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# Usage: __tsm::helpers::add_window <session_name> <window_name> <window_working_directory>
function __tsm::helpers::add_window() {
local session_name="$1" window_name="$2" working_directory="$3"
command tmux new-window -d -t "$session_name:" -n "$window_name" -c "$working_directory"
command tmux new-window -d -S -t "$session_name:" -n "$window_name" -c "$working_directory"
}

0 comments on commit 342e26f

Please sign in to comment.