From 1f69bdeacd8ba07002fe701dcb8271eb85886eaa Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 25 Jun 2021 09:25:18 +0100 Subject: [PATCH] zsh: Re-add missing function Re-add the missing `_not_inside_tmux` function as it was throwing an error when starting a new Terminal session and was preventing tmux from being opened. --- .zsh/configs/tmux.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zsh/configs/tmux.zsh b/.zsh/configs/tmux.zsh index 61e6ad05..35896603 100644 --- a/.zsh/configs/tmux.zsh +++ b/.zsh/configs/tmux.zsh @@ -1,3 +1,7 @@ +_not_inside_tmux() { + [[ -z "$TMUX" ]] +} + ensure_tmux_is_running() { if _not_inside_tmux; then tat