You are not logged in.
export PS1="\e[1;32m\u\e[m \e[1;32m[\e[m\w\e[1;32m]\e[m: "
Right, that's my PS1. If my input is longer than one row, the text will start to overwrite the original prompt including the first row of text, which is ugly.
What gives?
(Having a "Small questions"-forum would be cool. )
Last edited by initbox (2008-12-14 13:08:18)
Offline
This is a terminal sizing issue... you may want to try adding "shopt -s checkwinsize" to your ~/.bashrc, which tells bash to check its own window size after every command
Offline
This is a terminal sizing issue... you may want to try adding "shopt -s checkwinsize" to your ~/.bashrc, which tells bash to check its own window size after every command
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
Have that already...
Offline
Try this:
export PS1='\[\e[1;32m\]\u [\[\e[0m\]\W\[\e[1;32m\]]\[\e[0m\]: '
Offline
Try this:
export PS1='\[\e[1;32m\]\u [\[\e[0m\]\W\[\e[1;32m\]]\[\e[0m\]: '
Yay, VICTORY! Thanks!
Offline
nice
Last edited by orphius (2009-04-03 13:24:27)
Offline