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 root and @# in prompt if user is superuser. #5409

Merged
merged 3 commits into from May 22, 2024
Merged

Show root and @# in prompt if user is superuser. #5409

merged 3 commits into from May 22, 2024

Conversation

anki-code
Copy link
Member

@anki-code anki-code commented May 13, 2024

Before

sudo xonsh --no-rc
# <user>@host ~ #

After

sudo xonsh --no-rc
# root@host ~ @#

It's in sync with:

docker run -it ubuntu bash
# root@ce01c2856819:/#
echo $USER
# 
# root@ce01c2856819:/#

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@anki-code anki-code requested a review from gforsyth May 13, 2024 11:54
@gforsyth gforsyth merged commit c5f7b74 into main May 22, 2024
12 checks passed
@gforsyth gforsyth deleted the nice_prompt branch May 22, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants