From 1b6dcd987862ccc3e913d515330a0fe221579614 Mon Sep 17 00:00:00 2001 From: afranco Date: Sat, 8 Jun 2024 18:08:35 +0100 Subject: [PATCH] chore(zsh): only start TMUX if not in a TTY --- .config/zsh/overrides.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/zsh/overrides.zsh b/.config/zsh/overrides.zsh index b34985c..b98fa64 100644 --- a/.config/zsh/overrides.zsh +++ b/.config/zsh/overrides.zsh @@ -1,3 +1,7 @@ ZSH_AUTOSUGGEST_STRATEGY=(match_prev_cmd history completion) -ZSH_TMUX_AUTOSTART=true + +if [[ ! $(tty) =~ ^/dev/tty[0-9]*$ ]]; then + ZSH_TMUX_AUTOSTART=true +fi + zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always $realpath'