8000 Make it possible to always show hostname · Issue #5 · zimfw/asciiship · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make it possible to always show hostname #5

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

Open

Make it possible to always show hostname #5

thenktor opened this issue Aug 14, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@thenktor
Copy link

Is your feature request related to a problem? Please describe.

Hi,

when working with zones/containers/jails you can enter them with tools like zlogin (OmniOS) or pct enter (Proxmox). But then you won't see the hostname, because it is not a ssh session.

Describe the solution you'd like

Make it configurable to always show the hostname.

Describe alternatives you've considered

A workaround is using another theme.

Additional context

No response

@thenktor thenktor added the enhancement New feature or request label Aug 14, 2024
@ericbn
Copy link
Member
ericbn commented Aug 14, 2024

@thenktor, is there an environment variable that is consistently set in all these scenarios that you describe that we could detect?

@ericbn
Copy link
Member
ericbn commented Aug 14, 2024

If you want to customize the prompt, you can create your own fork and change the code accordingly. To always show the hostname:

-%(2L.%B%F{yellow}(%L)%f%b .)%(!.%B%F{red}%n%f%b in .${SSH_TTY:+"%B%F{yellow}%n%f%b in "})${SSH_TTY:+"%B%F{green}%m%f%b in "}%B%F{cyan}%~%f%b${(e)git_info[prompt]}${VIRTUAL_ENV:+" via %B%F{yellow}${VIRTUAL_ENV:t}%f%b"}${duration_info}
+%(2L.%B%F{yellow}(%L)%f%b .)%(!.%B%F{red}%n%f%b in .${SSH_TTY:+"%B%F{yellow}%n%f%b in "})%B%F{green}%m%f%b in %B%F{cyan}%~%f%b${(e)git_info[prompt]}${VIRTUAL_ENV:+" via %B%F{yellow}${VIRTUAL_ENV:t}%f%b"}${duration_info}

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

No branches or pull requests

2 participants
0