diff --git a/zprofile b/zprofile index 7b24140..7b917b6 100644 --- a/zprofile +++ b/zprofile @@ -12,7 +12,7 @@ print_heading -l 1 'Initializing login shell' list_tmux_sessions() { tmux_out=`tmux list-sessions 2>/dev/null` - [[ -z "$tmux_out" ]] && return + [[ -z "$tmux_out" || -n "$TMUX" ]] && return echo "You have the following active tmux sessions:" for session in ${(f)tmux_out}; do