justjanne / powerline-go

A beautiful and useful low-latency prompt for your shell, written in go
GNU General Public License v3.0
2.73k stars 268 forks source link

add segment-shlvl #361

Closed buckley310 closed 1 year ago

buckley310 commented 2 years ago

This is my attempt at a module to display the SHLVL variable if the current shell is a subshell. I've been using this patch for a few months, and I like it.

Right now it has no configuration options and no unicode icon. I figure it would be easier to add these things later (if needed) than to come up with something now and change it later. I'm not really even sure if it needs them.

See also https://github.com/justjanne/powerline-go/issues/290

image

buckley310 commented 2 years ago

Suggestions on the default color are welcome. I just chose colors that look good on my machine. See the github issue linked above for more of my screenshots. I don't know what it looks like in the "average" setup.

buckley310 commented 1 year ago

This PR does not seem to be moving, and I actually stopped using this patch at some point anyway. I'll keep my branch if someone else wants to pick this up where I left it.