diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-07-20 15:37:37 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-07-20 15:37:37 +0200 |
commit | 66f91cef3b8044afdbf0a5b25efe806388322d33 (patch) | |
tree | f6a9e89f38d5c3ff2408d60f96b789ac1cf6e112 | |
parent | 5302504b12cbecc14bf53d11a2b28b38dc2ea021 (diff) | |
download | dotfiles-66f91cef3b8044afdbf0a5b25efe806388322d33.tar.gz dotfiles-66f91cef3b8044afdbf0a5b25efe806388322d33.tar.xz dotfiles-66f91cef3b8044afdbf0a5b25efe806388322d33.zip |
screenmagic for all terms that start with screen
Diffstat (limited to '')
-rw-r--r-- | bashrc/common/prompt.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bashrc/common/prompt.sh b/bashrc/common/prompt.sh index 89ad0ec..73bd061 100644 --- a/bashrc/common/prompt.sh +++ b/bashrc/common/prompt.sh @@ -27,7 +27,7 @@ __make_prompt() { fi # environment flags - [[ "${TERM}" == "screen" ]] && PS1F="${PS1F}$(pcolor lcyan)s$(pcolor)" + [[ "${TERM#screen}" != "${TERM}" ]] && PS1F="${PS1F}$(pcolor lcyan)s$(pcolor)" # prompt character PS1P="$(pcolor lblue)\\\$ $(pcolor)" @@ -98,7 +98,7 @@ __make_prompt() { export PS1="${PS1UH} ${PS1BO}${PS1R}${PS1F}${PS1BC} ${PS1D} ${s}${PS1P}" - if [ ${TERM} = "screen" ]; then + if [[ "${TERM#screen}" != "${TERM}" ]]; then echo -ne "\ek$(id -un)@$(hostname)\e\\" fi } |