agkozak / polyglot

Color, ASCII-only Git prompt for zsh, bash, ksh93, mksh, pdksh, oksh, dash, yash, busybox ash, and osh
MIT License
181 stars 13 forks source link

Whats the difference between $ and % in the prompt? #7

Closed kiedtl closed 5 years ago

agkozak commented 5 years ago

Bourne-style shells (sh, ksh, bash, and the like) use $ as their default prompt character. csh-style shells use % by default. zsh shares features of both families of shells, and it uses % as its prompt character.

The Polyglot Prompt simply uses the prompt character that each shell would use by default. So you'll see $ for all shells except zsh, which uses %.

kiedtl commented 5 years ago

Thanks! Awesome prompt BTW.

agkozak commented 5 years ago

Thanks!