summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-01 13:03:30 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-01 13:03:30 +0100
commitc90d56078268662b821437cbfe6e79875bac17da (patch)
treef84c095c093ed4fcb230aee68748b30a72c04d69 /etc/functions
parent7967a46e74aef7cf89a5b630bdf0f3b31ca088d7 (diff)
Updated prompt generation, fixed some RPS1 problems
Diffstat (limited to 'etc/functions')
-rwxr-xr-xetc/functions/dirinfo8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/functions/dirinfo b/etc/functions/dirinfo
index 5781580..689c20f 100755
--- a/etc/functions/dirinfo
+++ b/etc/functions/dirinfo
@@ -10,4 +10,10 @@ typeset string
[[ -d .svn ]] && string+='svn '
[[ -f Makefile || -f makefile ]] && string+='make '
-echo $string
+# if we're running in screen, we're the only one writing into the prompt
+# -> no trailing whitespace
+if [[ $TERM == screen ]] {
+ echo ${string% }
+} else {
+ echo $string
+}