Mi configuración de tmux
brew install reattach-to-user-namespace
function tat {
name=$(basename `pwd` | sed -e 's/\.//g')
if tmux ls 2>&1 | grep "$name"; then
tmux attach -t "$name"
elif [ -f .envrc ]; then
direnv exec / tmux new-session -s "$name"
else
tmux new-session -s "$name"
fi
}
#Tmux plugin manager
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm