mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-08 00:10:41 +01:00
feat(tmux): set session name with ZSH_TMUX_DEFAULT_SESSION_NAME (#9063)
This commit is contained in:
@@ -76,7 +76,11 @@ function _zsh_tmux_plugin_run() {
|
||||
elif [[ -e "$ZSH_TMUX_CONFIG" ]]; then
|
||||
tmux_cmd+=(-f "$ZSH_TMUX_CONFIG")
|
||||
fi
|
||||
$tmux_cmd new-session
|
||||
if [[ -n "$ZSH_TMUX_DEFAULT_SESSION_NAME" ]]; then
|
||||
$tmux_cmd new-session -s $ZSH_TMUX_DEFAULT_SESSION_NAME
|
||||
else
|
||||
$tmux_cmd new-session
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user