DEV Community

Discussion on: PromptConfig, craft a custom terminal prompt with JSON

Collapse
 
bdmorin profile image
Brian

"Bash is hard." said the /bin/fish developers..

a few years later, fish shells are as arcane as bash prompts. lol.

Thanks for writing this, I'm going to try it.

Collapse
 
brandonweiss profile image
Brandon Weiss

Yeah, I realize “hard” is of course very subjective. I’ve always found it very difficult and most of the people I know seemed to agree. I use it infrequently enough that whatever I might learn when I use it I quickly forget. Debugging Bash while building this was really painful for me. 😭

I used Fish for a few years! I found the scripting much simpler, but it created another problem for me which is that tools that provide shell integrations always assume Bash, or maybe ZSH. A few provide Fish support but most don’t. After a while the headache of tools not working quite right or needing special patches was more trouble than it was worth.

My pleasure! Please let me know if you run into any issues or if it’s missing something! Someone recently pointed out they use styles like bold/underline/etc. in their prompt, so I might add support for that soon.