diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-02-25 18:21:31 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-02-25 18:21:31 +0100 |
commit | 2c83939a5779bc890fb33ea115a943cba2b1f5e0 (patch) | |
tree | a160c85713d2f7027d9c22cf550ba77e85f99e21 /10_Environment.zsh | |
parent | ae04f9ce9f61f871dc790019f9bd4c2957b49f8f (diff) |
[Env] Process tree checkup to get urxvt/tmux/screen
Diffstat (limited to '10_Environment.zsh')
-rw-r--r-- | 10_Environment.zsh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/10_Environment.zsh b/10_Environment.zsh index 66774ce..6dfbe78 100644 --- a/10_Environment.zsh +++ b/10_Environment.zsh @@ -27,7 +27,17 @@ C_="%{$c_" _C="$_c%}" unset has_termcaps -[ $TERM = "rxvt-unicode" -o $TERM = "screen" ] && has_termcaps="true" +case "$( _process_tree )" in + *":: screen ::"*) + # Discards termcaps even if screen is launched from an urxvt.. + ;; + *":: urxvt ::"*|\ + *":: tmux ::"*) + has_termcaps="true" + ;; + *) + ;; +esac T_=${has_termcaps:+$termcap[as]} _T=${has_termcaps:+$termcap[ae]} _tq_=${${has_termcaps:+"q"}:-"-"} |