Re: Probleme mit farbigem bash prompt
Peter Jordan wrote the following on 25.11.2008 07:08
> Funktioniert mein prompt bei euch allen?
>
> PJ
Nein. Sieht lustig aus. ;)
changelog readline5 5.2-3 (die einzige Version die seit etch hochgeladen wurde):
<--------------------------------------------
* Apply upstream patch readline52-001 (readline neglects to reallocate
the array it uses to keep track of wrapped screen lines when increasing
its size. This will eventually result in segmentation faults when given
sufficiently long input.
* Apply upstream patch readline52-003 and readline52-004, fixes
for displaying the prompt.
--------------------------------------------->
ich denke da hat damit zu tun.
probier das hier mal:
PWDTEST='if [ ${#PWD} -gt 42 ] ; then echo -e "\n\$" ; else echo -e "\$" ; fi'
PS1="\[\033[1;30m\]\u@\[\033[0;32m\]\h\[\033[0;33m\] \t
#\#[$?]\[\033[0;32m\]:\[\033[0;36m\]\w\[\033[00m\] \$($PWDTEST)"
unset PWDTEST
(3 Zielen)
--
bye Thilo
key: 0x4A411E09
Reply to: