Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 365 Bytes
function tat
set session_name (basename "$PWD" | tr . -)
set session_exists (tmux list-sessions | sed -E 's/:.*$//' | ag "^"$session_name"\$")
if test $TMUX
if not test $session_exists
set TMUX ''
tmux new-session -Ad -s $session_name
end
tmux switch-client -t "$session_name"
else
tmux new-session -As $session_name
end
end
You can’t perform that action at this time.