• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Bash PS1 variable

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!

 
author & internet detective
Posts: 42152
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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$ "
reply
    Bookmark Topic Watch Topic
  • New Topic