|
|
@ -3,6 +3,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
|
|
|
|
# Colin Hebert <hebert.colin@gmail.com>
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Usage:
|
|
|
|
# Usage:
|
|
|
|
# To auto start it, add the following to zshrc:
|
|
|
|
# To auto start it, add the following to zshrc:
|
|
|
@ -16,8 +17,7 @@ alias ta="tmux attach-session"
|
|
|
|
alias tl="tmux list-sessions"
|
|
|
|
alias tl="tmux list-sessions"
|
|
|
|
|
|
|
|
|
|
|
|
# Auto Start
|
|
|
|
# Auto Start
|
|
|
|
if (( $SHLVL == 1 )) && zstyle -t ':omz:plugin:tmux:auto' start; then
|
|
|
|
if [[ -z "$TMUX" ]] && zstyle -t ':omz:plugin:tmux:auto' start; then
|
|
|
|
(( SHLVL += 1 )) && export SHLVL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
session="$(
|
|
|
|
session="$(
|
|
|
|
tmux list-sessions 2> /dev/null \
|
|
|
|
tmux list-sessions 2> /dev/null \
|
|
|
|