From 18277f0453299807a9c080739aca9018513689b9 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 14 Sep 2012 22:57:40 +0900 Subject: [PATCH] update __my_ps1_tmux --- bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 0de6e2c..e911517 100755 --- a/bashrc +++ b/bashrc @@ -557,7 +557,8 @@ __my_ps1_scale(){ } __my_ps1_tmux(){ local last=$? - local tmuxc="$(__try_exec tmux display -p '#S:#I:#W.#P' 2>/dev/null)" + null type tmux || return $last + local tmuxc="$(tmux display -p '#S:#I:#W.#P' 2>/dev/null)" test -n "$TMUX" && echo "[TMUX:$tmuxc]" return $last }