From c90d56078268662b821437cbfe6e79875bac17da Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 1 Mar 2009 13:03:30 +0100 Subject: Updated prompt generation, fixed some RPS1 problems --- etc/functions/dirinfo | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'etc/functions') 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 +} -- cgit v1.2.3