Create a new session then rename it:
C-b :new C-b $
Create a new named session:
C-b :new -s <name>
Alias to move the current window to a different session:
tmux-send-window () {
session=$1
if [[ -z $session ]]
then
echo "usage: $0 <session-name>"
return 1
fi
if [[ $session = $(tmux display-message -p '#S') ]]
then
echo "error: can't send window to current session"
return 1
fi
local dst=$(($(tmux list-windows -t $session | cut -f1 -d: | tail -n-1) + 1))
local src=$(tmux display-message -p '#I')
echo tmux move-window -d -s $src -t ${session}:$dst
TERM=xterm tmux move-window -d -s $src -t ${session}:$dst
}