[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Probleme mit farbigem bash prompt



Thilo Six, 11/25/2008 10:04 PM:

> 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.

Ein downgrade auf die etch version von readline5 hilft zumindest nicht.

Wohl aber ein downgrade zur etch version der bash. Dort muss also
irgendwo der Fehler liegen.

> 
> 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)

Das scheint zu funktionieren, ist aber irgendwie auch nicht das was ich
mir wünsche.

PJ


Reply to: