You are not logged in.
Pages: 1
hi, i wrote this .bashrc for my user:
PS1='[\e[0;34m\u\e[0m@\h \W/]\$ '
and the result is this:
ozeta@dolphin ~/]$
however, with many commands (like mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vf screenshot), if i press the "up" key to view command history, i have troble like this:
ozeta@dolphin ~/]$ mplayer tv:mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vf screenshot
i cannot understand what is the problem...:o
does anybody can help me with the script? thank you
Offline
any non printing characters must be espaced with \[ \]. like so:
PS1='[\[\e[0;34m\]\u\[\e[0m\]@\h \W/]\$ '
hi!
EDIT:
i'm sorry, i forget to restart my user...the code works fine, thanks a lot!!
Last edited by ozeta (2009-09-17 19:50:05)
Offline
brisbin33 wrote:any non printing characters must be espaced with \[ \]. like so:
PS1='[\[\e[0;34m\]\u\[\e[0m\]@\h \W/]\$ '
hi!
EDIT:
i'm sorry, i forget to restart my user...the code works fine, thanks a lot!!
For future reference..when you change your .bashrc, there's no need to logout...just do `source ~/.bashrc`. That will read the rc file and apply changes immediatly
Archlinux | ratpoison + evilwm | urxvtc | tmux
Offline
For future reference..when you change your .bashrc, there's no need to logout...just do `source ~/.bashrc`. That will read the rc file and apply changes immediatly
For this terminal only.
Offline
Lich wrote:For future reference..when you change your .bashrc, there's no need to logout...just do `source ~/.bashrc`. That will read the rc file and apply changes immediatly
For this terminal only.
Correct, but newly spawned terminals will use the new settings aswell
Archlinux | ratpoison + evilwm | urxvtc | tmux
Offline
ozeta wrote:brisbin33 wrote:any non printing characters must be espaced with \[ \]. like so:
PS1='[\[\e[0;34m\]\u\[\e[0m\]@\h \W/]\$ '
hi!
EDIT:
i'm sorry, i forget to restart my user...the code works fine, thanks a lot!!
For future reference..when you change your .bashrc, there's no need to logout...just do `source ~/.bashrc`. That will read the rc file and apply changes immediatly
nice!
thanks!
Offline
Pages: 1