Replies: 6 comments 7 replies
-
This is a zsh question rather than a p10k one. As far as I recall, the hostname can be overridden with
|
Beta Was this translation helpful? Give feedback.
-
Have you seen this block? https://github.com/romkatv/powerlevel10k/blob/master/config/p10k-rainbow.zsh#L983-L985 What happens if you heed the tip? There is also this: https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#how-do-i-add-username-andor-hostname-to-prompt |
Beta Was this translation helpful? Give feedback.
-
aah.. I incorrectly assumed that my Thank you for your support. I commented that particular typeset |
Beta Was this translation helpful? Give feedback.
-
You can also set parameters within if [[ -r /proc/1/cpuset(#qN-.) && $(</proc/1/cpuset) == /docker/* ]]; then
# in docker
typeset POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_TEMPLATE='docker'
else
# not in docker
typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
fi |
Beta Was this translation helpful? Give feedback.
-
My Powerlevel10k prompt is showing incorrect hostname. This is my P10K config file for context
|
Beta Was this translation helpful? Give feedback.
-
What is the output of |
Beta Was this translation helpful? Give feedback.
-
I have weird issue where.. if I run powerlevel10k inside a rootless container - I do not get
user@hostname
block displayed. But same container, if I run rootful, I get the required context.So I am trying to understand how the hostname is read by powerlevel10k.
HOSTNAME env variable is set and I can echo it.
Basically
%n@%m
where are values forn
andm
get set?Beta Was this translation helpful? Give feedback.
All reactions