summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-07-05 17:49:24 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2009-07-05 17:49:24 +0200
commit1442d63dfaee897813ba777bf511c0afa8994279 (patch)
tree76a53ad2aa3ca9c16227fcfda768e8338dc23254
parent0a2cb786eb82bdf4ca46f7fca0a33efc8bb9f2bb (diff)
downloaddotfiles-1442d63dfaee897813ba777bf511c0afa8994279.tar.gz
dotfiles-1442d63dfaee897813ba777bf511c0afa8994279.tar.xz
dotfiles-1442d63dfaee897813ba777bf511c0afa8994279.zip
screen magic only in screen, removed newline from prompt
-rw-r--r--bashrc/common/prompt.sh7
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"