Closed iomari closed 4 years ago
Does this help? https://github.com/romkatv/powerlevel10k/blob/master/README.md#how-do-i-add-username-andor-hostname-to-prompt
P.S.
In the future please open issues at https://github.com/romkatv/powerlevel10k. powerlevel9k and powerlevel10k are different projects.
thank you
On Wed, Jan 15, 2020 at 11:54 AM Roman Perepelitsa notifications@github.com wrote:
Does this help? https://github.com/romkatv/powerlevel10k/blob/master/README.md#how-do-i-add-username-andor-hostname-to-prompt
P.S.
In the future please open issues at https://github.com/romkatv/powerlevel10k. powerlevel9k and powerlevel10k are different projects.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Powerlevel9k/powerlevel9k/issues/1393?email_source=notifications&email_token=ACBDTHSQCSBAFB2FB2LGKS3Q53TPDA5CNFSM4KHBPZPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI747FA#issuecomment-574607252, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBDTHQCDCQWV2JQQ5PTVLTQ53TPDANCNFSM4KHBPZPA .
greetings, my left prompt context menu is not showing at all. But when I'm logged in as root it shows. I have the same settings for both privilege and normal user:
here is the image. The top prompt is the normal user with no context segment. The bottom is when I "su -l". There you'll see the context. Below is the relevant section of the ~/.p10k.zsh file:
https://imagebin.ca/v/58trJKQg85Hs
570 ##################################[ context: user@hostname ]################################## 571 # Default context color. 572 typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND='white' 573 typeset -g POWERLEVEL9K_CONTEXT_BACKGROUND='darkred' 574 # Default context format: %n is username, %m is hostname. 575 # typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n at %m' 576 typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m' 577 578 # Context color when running with privileges. 579 typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND='darkred' 580 typeset -g POWERLEVEL9K_CONTEXT_ROOT_BACKGROUND='white'
581 # Context format when running with privileges: %n is username, %m is hostname. 582 # typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%n at %m' 583 typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%n@%m'