Explorar el Código

update __my_ps1_tmux

pull/1/head
10sr hace 12 años
padre
commit
7aeaba75cc
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      bashrc

+ 2
- 1
bashrc Ver fichero

@@ -454,11 +454,12 @@ ip-address(){
test -n "$ip" && printf $1 $ip
}

TMUX_CURRENT=$(tmux display -p '#S:#I:#W.#P')
__my_ps1_tmux(){
local last=$?
if test -n "$TMUX"
then
echo "[TMUX:$TMUX_PANE]"
echo "[TMUX:$TMUX_CURRENT]"
fi
return $last
}


Cargando…
Cancelar
Guardar