Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpler version #9

Open
mcandre opened this issue May 9, 2020 · 1 comment
Open

Simpler version #9

mcandre opened this issue May 9, 2020 · 1 comment
Assignees

Comments

@mcandre
Copy link

mcandre commented May 9, 2020

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.

@agkozak agkozak self-assigned this May 11, 2020
@agkozak
Copy link
Owner

agkozak commented May 13, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants