All Questions
3
questions
0
votes
1
answer
1k
views
Bash PS1 and single vs. double quotes
I'm a linux and Bash newbie and would like to ask help understanding the role of single and double quotes when assigning the PS1 env var.
I wanted to set the terminal to always show the current ...
0
votes
1
answer
178
views
How can I style the command being entered in a bash prompt?
While watching this intro video to Brunch, at about t=1:30 the command prompt being used has some very cool styles.
The part I'm interested in is how the presenter managed to colour the text being ...
40
votes
2
answers
12k
views
Linux: coloring bash prompt will break carriage return
When I try to colorize the bash prompt like this:
export PS1="\e[0;31m[\u@\h \W]\$ \e[m "
it breaks the carriage return (instead of going to a new line when line is full, it starts in the same line ...