Re: Multiline prompt problems with long commands

2014-11-13 Thread Kamil Neczaj
Hello, Thank you very much for the hint. It looks like all my problems with bash disappeared. Kamil 2014-11-04 20:01 GMT+00:00 Chris Down : > Kamil Neczaj writes: > >> Thank you for your response! I modified this prompt couple of times, >> probably that's why it's like this. Anyway, I don't thi

Re: Multiline prompt problems with long commands

2014-11-04 Thread Chris Down
Kamil Neczaj writes: Thank you for your response! I modified this prompt couple of times, probably that's why it's like this. Anyway, I don't think this should cause the problem. The PS1 variable is the one I use. I wanted to copy it here to have exactly the example which I know that causes probl

Re: Multiline prompt problems with long commands

2014-11-04 Thread Kamil Neczaj
Hello, Thank you for your response! I modified this prompt couple of times, probably that's why it's like this. Anyway, I don't think this should cause the problem. The PS1 variable is the one I use. I wanted to copy it here to have exactly the example which I know that causes problems for sure.

Re: Multiline prompt problems with long commands

2014-11-04 Thread Piotr Grzybowski
Hey Kamil, as Chet pointed out, you missed one '\[', this one works: PS1="\n\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]\n\n\[\033[01;31m\]-> \[\e[0m\]" cheers, pg

Re: Multiline prompt problems with long commands

2014-11-04 Thread Chet Ramey
On 11/3/14 6:50 PM, Kamil Neczaj wrote: > Bash Version: 4.3 > Patch Level: 30 > Release Status: release > > Description: > When using multiline prompt and entering a long command, the part > which doesn't fit and should be moved to a > new line is actually move to the beginning of the sam

Multiline prompt problems with long commands

2014-11-03 Thread Kamil Neczaj
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale'