1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-10-14 15:49:09 +00:00

Add the ability to specify tmux session name

This commit is contained in:
Matt Henkel
2017-05-02 17:57:00 -07:00
committed by Kaleb Elwert
parent 871b15663c
commit d02c2951b3
3 changed files with 8 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" ]] && ( \
# Create a 'prezto' session if no session has been defined in tmux.conf.
if ! tmux has-session 2> /dev/null; then
tmux_session='prezto'
zstyle -s ':prezto:module:tmux' tmux_session 'session' || tmux_session='prezto'
tmux \
new-session -d -s "$tmux_session" \; \
set-option -t "$tmux_session" destroy-unattached off &> /dev/null