cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.75k stars 176 forks source link

Add customizable prompt with $MCFLY_PROMPT #325

Closed kothavade closed 1 year ago

kothavade commented 1 year ago

If MCFLY_PROMPT is set, it is used as the prompt, but if not it defaults to $. Fixes #324.

cantino commented 1 year ago

This looks great, thanks @vedkothavade!

cantino commented 1 year ago

Actually, I did find a bug. Try setting MCFLY_PROMPT='>>>', or anything longer than 2 characters.

kothavade commented 1 year ago

Actually, I did find a bug. Try setting MCFLY_PROMPT='>>>', or anything longer than 2 characters.

I missed that, added a check for the prompt length

cantino commented 1 year ago

Thanks @vedkothavade!

cantino commented 1 year ago

Released in v0.8.0.