zsh PS1, dollar sign in the beginning, why?
Here's the prompt for zsh:
Code:
PS1=$'%B%n @ %M%b %{\e[1;32m%}%~%{\e[0m%} $ ' |
$'string' is a quoting pattern that will evaluate any baskslash-escaped characters it encloses into their literal equivalents. It's similar in function to echo -e (at least in bash, not sure about zsh), except that it can also be used in places other than just echoing text.
$'\t' evaluates to a literal tab character, for example. I've located the zsh user guide section concerning it: http://zsh.sourceforge.net/Guide/zshguide05.html#l115 |
All times are GMT -5. The time now is 01:25 PM. |