Open thenktor opened 3 months ago
@thenktor, is there an environment variable that is consistently set in all these scenarios that you describe that we could detect?
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}
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) orpct 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