#!/bin/bash echo "New window created with name $1" tmux new-window -n $1 window=$1 tmux send-keys -t "$window" C-z "cd ./$1" Enter