blob: fd623271f9f40212116f8f4faf243dbd5b394592 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
# Attach to existing tmux session rather than create a new one if possible
function tmux {
if [[ -n "$*" ]]; then
command tmux $*
else
command tmux attach -d &>/dev/null || command tmux
fi
}
|