• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bash PS1 variable  RSS feed

 
Nirajr Patel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a newbie and my bash ps1 variable is messing up the way my shell handles new lines. I think it is not formatted correctly. Any ideas?? Thanks for the help!

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37469
539
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea what that does. But consider debugging my removing tiny pieces of it one at a time until the problem goes away. That will identify the problem code. Then you can eitehr read up on that particular part of the string or ask here.

export PS1="\e[37m\u@\h: \e[0;33m\W\$(parse_git_branch)\[\033[00m\]\e[37m$ "
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!