1
0
dotfiles-public/bashhacks/tmux.bash

12 lines
223 B
Bash

alias dtmux="direnv exec / tmux"
function tm {
if [ "$1" == "" ];then
_TM_SESSION="tmdefault"
else
_TM_SESSION=$1
fi
dtmux attach -t $_TM_SESSION 2>/dev/null || dtmux new -s $_TM_SESSION
}