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

Show $SHLVL in prompt if greater than 1 #57

Open
chris-marsh opened this issue Mar 8, 2021 · 2 comments
Open

Show $SHLVL in prompt if greater than 1 #57

chris-marsh opened this issue Mar 8, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@chris-marsh
Copy link
Owner

I think it would be useful to have the prompt show the shell level.
This is probably more useful when you messing about with things like PureLine dev :) I'm constantly sourcing pureline or starting new bash sessions to test stuff. Working my way back with Ctrl-D is tricky to know when your at ground zero.

Prompt segment could be

|$> bash
|2$> bash
|3$> bash
|4$> ctrl-d
|2$> ctrl-d
|$>
@chris-marsh chris-marsh added the enhancement New feature or request label Mar 8, 2021
@hamza-arshad
Copy link

@chris-marsh can I pick this?

@CyrilOtheninGirard
Copy link
Contributor

See pull request #80 for a possible implementation

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

No branches or pull requests

3 participants