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

Hostname disappears from prompt when sudo-ing on a remote server #306

Open
silverhook opened this issue Aug 19, 2021 · 0 comments
Open

Hostname disappears from prompt when sudo-ing on a remote server #306

silverhook opened this issue Aug 19, 2021 · 0 comments

Comments

@silverhook
Copy link

When I ssh to a remote machine, by default the prompt changes to user@host, which I find super useful,

But the problem is that if I sudo -s then the prompt changes to simply $, and I see neither the user (who started sudo, nor the one that was sudo’d to) nor the hostname.

In effect, it’s impossible to tell a local sudo prompt from a remote one.

This issue (at least from the user PoV) may be somewhat related to #170 – where the solution was to introduce an optional (user) prompt.

From technical PoV (but I’m not a coder) I suspect the issue is that when you sudo, the new fish instance does not know it is in ssh.


P.S. Love the theme. Thanks so much for this! ><> . . <3

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

No branches or pull requests

1 participant