refs #544 Only creates default session if none created in tmux.conf
This commit is contained in:
parent
fedad8e9cf
commit
def720f604
1 changed files with 3 additions and 1 deletions
|
@ -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 \; \
|
||||
|
|
Loading…
Add table
Reference in a new issue