diff options
Diffstat (limited to 'user-profiles')
-rw-r--r-- | user-profiles/zsh/p10k.zsh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/user-profiles/zsh/p10k.zsh b/user-profiles/zsh/p10k.zsh index d0dda29c..e3b364c2 100644 --- a/user-profiles/zsh/p10k.zsh +++ b/user-profiles/zsh/p10k.zsh | |||
@@ -33,10 +33,12 @@ | |||
33 | typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( | 33 | typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( |
34 | # =========================[ Line #1 ]========================= | 34 | # =========================[ Line #1 ]========================= |
35 | # os_icon # os identifier | 35 | # os_icon # os identifier |
36 | context # user@hostname | ||
36 | dir # current directory | 37 | dir # current directory |
37 | vcs # git status | 38 | vcs # git status |
38 | # =========================[ Line #2 ]========================= | 39 | # =========================[ Line #2 ]========================= |
39 | newline # \n | 40 | newline # \n |
41 | context # user@hostname | ||
40 | dir | 42 | dir |
41 | prompt_char # prompt symbol | 43 | prompt_char # prompt symbol |
42 | ) | 44 | ) |
@@ -86,7 +88,6 @@ | |||
86 | azure # azure account name (https://docs.microsoft.com/en-us/cli/azure) | 88 | azure # azure account name (https://docs.microsoft.com/en-us/cli/azure) |
87 | gcloud # google cloud cli account and project (https://cloud.google.com/) | 89 | gcloud # google cloud cli account and project (https://cloud.google.com/) |
88 | google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production) | 90 | google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production) |
89 | context # user@hostname | ||
90 | nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) | 91 | nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) |
91 | ranger # ranger shell (https://github.com/ranger/ranger) | 92 | ranger # ranger shell (https://github.com/ranger/ranger) |
92 | nnn # nnn shell (https://github.com/jarun/nnn) | 93 | nnn # nnn shell (https://github.com/jarun/nnn) |
@@ -190,7 +191,7 @@ | |||
190 | # typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐' | 191 | # typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐' |
191 | 192 | ||
192 | ################################[ prompt_char: prompt symbol ]################################ | 193 | ################################[ prompt_char: prompt symbol ]################################ |
193 | typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=010 | 194 | typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=2 |
194 | # Default prompt symbol. | 195 | # Default prompt symbol. |
195 | typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯' | 196 | typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯' |
196 | # Prompt symbol in command vi mode. | 197 | # Prompt symbol in command vi mode. |
@@ -827,9 +828,9 @@ | |||
827 | # Context color when running with privileges. | 828 | # Context color when running with privileges. |
828 | typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=178 | 829 | typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=178 |
829 | # Context color in SSH without privileges. | 830 | # Context color in SSH without privileges. |
830 | typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_FOREGROUND=180 | 831 | typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_FOREGROUND=31 |
831 | # Default context color (no privileges, no SSH). | 832 | # Default context color (no privileges, no SSH). |
832 | typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180 | 833 | typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=31 |
833 | 834 | ||
834 | # Context format when running with privileges: bold user@hostname. | 835 | # Context format when running with privileges: bold user@hostname. |
835 | typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%B%n@%m' | 836 | typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%B%n@%m' |
@@ -1544,8 +1545,8 @@ | |||
1544 | # typed after changing current working directory. | 1545 | # typed after changing current working directory. |
1545 | typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off | 1546 | typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off |
1546 | 1547 | ||
1547 | function p10k-on-pre-prompt() { p10k display '1'=show '2/left/dir'=hide '2/right/*'=show '2/right/(status|command_execution_time|time|background_jobs)'=hide } | 1548 | function p10k-on-pre-prompt() { p10k display '1'=show '2/left/(dir|context)'=hide '2/right/*'=show '2/right/(status|command_execution_time|time|background_jobs)'=hide } |
1548 | function p10k-on-post-prompt() { p10k display '2/left/(dir|prompt_char)'=show 'empty_line|1'=hide '2/right/*'=hide '2/right/(status|command_execution_time|time|background_jobs)'=show } | 1549 | function p10k-on-post-prompt() { p10k display '2/left/(dir|context|prompt_char)'=show 'empty_line|1'=hide '2/right/*'=hide '2/right/(status|command_execution_time|time|background_jobs)'=show } |
1549 | 1550 | ||
1550 | # Instant prompt mode. | 1551 | # Instant prompt mode. |
1551 | # | 1552 | # |