chore(zsh): only start TMUX if not in a TTY

This commit is contained in:
Afonso Franco 2024-06-08 18:08:35 +01:00
parent 2c5dec2e81
commit 1b6dcd9878
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4

View file

@ -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'