agkozak / polyglot

Color, ASCII-only Git prompt for zsh, bash, ksh93, mksh, pdksh, oksh, dash, yash, busybox ash, and osh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simpler version

mcandre opened this issue · comments

Hey, polyglot is a great idea! Could it move to a more opt-in model for the prompt elements? Like, I'd love to source polyglot and then build my own prompt with reusable functions.

Thanks! I'll definitely try to think of improvements along that line.

The main complication is polyglot's main strength: it works pretty much the same in all shells (except csh/tcsh and some really old shells without dynamic prompts). Getting it to do that was actually quite hard, as I couldn't just use POSIX code; very obscure peculiarities of each shell had to be taken into account. Any little change can make the prompt unusable on one or more shells.

That said, I relish the challenge, and thank you for helping to make the prompt better. If you have any specific suggestions that would help you the most, let me know and I'll see if I can work them in by and by.