You are not logged in.
Pages: 1
Hello. I have problem with my gnome-terminal. When the command line is too long, it rolls to the same row instead of the next one.
Here you can see it if my explanation isn't clear enough:
I don't remember since when I have this problem, but I have modified my .bashrc file some time ago. Maybe this is the reason. Its content:
# Check for an interactive session
[ -z "$PS1" ] && return
complete -cf sudo
alias sudo="sudo -E"
alias ls='ls --color=auto'
PS1="\e[1;34m\u@\h \W> \e[m"
I would appreciate any hint how to fix it
Last edited by Fazir (2009-11-05 17:03:18)
Offline
Using checkwinsize might fix it:
shopt -s checkwinsize
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
yup. you need to wrap all non-printing characters with \[ and use also \e for the colors
good luck
If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.
Offline
I have the same issue, here a part of my .bashrc
PS1='\e[0;36m::\e[1;33m\u:\e[0;36m\w \e[1;33m\$ \e[0;37m\]'
Offline
Or lookup bash on the wiki.
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
dude, read my first post.
You are the man! So so sorry, but my english is very very poor, but with a little effort, now it worked.
PS1='\[\e[0;36m\]::\[\e[1;33m\]\u:\[\e[0;36m\]\w \[\e[1;33m\]\$ \[\e[0;37m\]'
Thanks again
Offline
Fixing PS1 worked! Thank you brisbin33
Offline
Pages: 1