zsh: Only start sesh-select if both sesh and sesh-select are available

This commit is contained in:
2025-09-13 02:00:53 +02:00
parent 1d3ae136be
commit 0117cc612e

View File

@@ -141,7 +141,7 @@ done
ZSH_TMUX_AUTOSTART=true
if (( $+commands[tmux] )); then
if [[ -z "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" && -z "$INSIDE_EMACS" && -z "$EMACS" && -z "$VIM" && -z "$INTELLIJ_ENVIRONMENT_READER" && -z "$ZED_TERM" ]]; then
if (( $+commands[sesh] )); then
if (( $+commands[sesh] )) && (( $+commands[sesh-select] )); then
sesh-select
else
tmux new-session