Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Added new-window functionality to tmx

  • Loading branch information...
commit 55633b8bb5cc0bd7551007f6fc254fa3629b7530 1 parent b5e9d44
Benjamin Cahill authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  tmx
2  tmx
@@ -46,6 +46,8 @@ else
# Create a new session (without attaching it) and link to base session
# to share windows
tmux new-session -d -t $base_session -s $session_id
+ # If new is set, open a new window in the new session
+ [[ "$2" = "new" ]] && tmux new-window
# Attach to the new session
tmux attach-session -t $session_id
# When we detach from it, kill the session
Please sign in to comment.
Something went wrong with that request. Please try again.