From 1f8f5e3a9f7711e083fbfa1380c56ede6c053383 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Tue, 12 Mar 2013 14:01:55 -0700 Subject: [PATCH] Check $TMUX variable to see if we're in a tmux session before printing list --- zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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