diff options
Diffstat (limited to 'bashrc/common')
-rw-r--r-- | bashrc/common/prompt.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bashrc/common/prompt.sh b/bashrc/common/prompt.sh index 5dc01ca..7a66718 100644 --- a/bashrc/common/prompt.sh +++ b/bashrc/common/prompt.sh @@ -96,8 +96,11 @@ __make_prompt() { s="${s} " fi - export PS1="${PS1UH} ${PS1BO}${PS1R}${PS1F}${PS1BC} ${PS1D} ${s}\n${PS1P}" - echo -ne "\ek$(id -un)@$(hostname)\e\\" + export PS1="${PS1UH} ${PS1BO}${PS1R}${PS1F}${PS1BC} ${PS1D} ${s}${PS1P}" + + if [ ${TERM} = "screen" ]; then + echo -ne "\ek$(id -un)@$(hostname)\e\\" + fi } export PROMPT_COMMAND="__make_prompt" |