refs #544 Only creates default session if none created in tmux.conf

This commit is contained in:
Xavier Cambar 2014-03-12 16:59:00 +01:00
parent fedad8e9cf
commit def720f604

View file

@ -23,7 +23,9 @@ if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" ]] && ( \
); then
tmux_session='prezto'
# Create a first 'prezto' session if tmux is starting.
tmux start-server
# Create a first 'prezto' session if tmux is starting
# and no session has been created.
if ! tmux has-session 2> /dev/null; then
tmux \
start-server \; \