diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-04-09 12:09:52 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-04-09 12:10:53 +0200 |
commit | 429ae08f4d807b00ca0b7cb8a4de9bedad2c59e0 (patch) | |
tree | 36a69eee441e0ec02122576075d1d7ecb9310b21 /10_Environment.zsh | |
parent | 422887043eb549fe9bbf3f278c9cd3c33f62bea0 (diff) |
[Env] colors : set red prompt in tmux pause session
Diffstat (limited to '10_Environment.zsh')
-rw-r--r-- | 10_Environment.zsh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/10_Environment.zsh b/10_Environment.zsh index 6dfbe78..a4c9c58 100644 --- a/10_Environment.zsh +++ b/10_Environment.zsh @@ -64,6 +64,10 @@ _tx_=${${has_termcaps:+"x"}:-"|"} PS1_ROOT=${PS1_ROOT:-$color[red]} PS1_USER=${PS1_USER:-$color[blue]} PS1_YEAH="38;5;82" +if ( __cmd_exists tmux && tmux list-panes -F '#S #{pane_tty}' | grep -q "^pause $(tty)" ) +then + PS1_USER=$color[red] +fi ## Variables d'environnement ``classiques'' # |