Kaynağa Gözat

supress errormesg when tmux is not running

pull/1/head
10sr 12 yıl önce
ebeveyn
işleme
0f1344befd
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      bashrc

+ 1
- 1
bashrc Dosyayı Görüntüle

@@ -469,7 +469,7 @@ ip-address(){
test -n "$ip" && printf $1 $ip
}

TMUX_CURRENT="$(__try_exec tmux display -p '#S:#I:#W.#P')"
TMUX_CURRENT="$(__try_exec tmux display -p '#S:#I:#W.#P' 2>/dev/null)"
__my_ps1_tmux(){
local last=$?
test -n "$TMUX" && echo "[TMUX:$TMUX_CURRENT]"


Yükleniyor…
İptal
Kaydet