diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/p10k-classic.zsh | 4 | ||||
-rw-r--r-- | config/p10k-lean-8colors.zsh | 4 | ||||
-rw-r--r-- | config/p10k-lean.zsh | 2 | ||||
-rw-r--r-- | config/p10k-pure.zsh | 23 | ||||
-rw-r--r-- | config/p10k-rainbow.zsh | 2 |
5 files changed, 27 insertions, 8 deletions
diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index f34ac403..ca737e05 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -34,7 +34,7 @@ dir # current directory vcs # git status # =========================[ Line #2 ]========================= - newline + newline # \n # prompt_char # prompt symbol ) @@ -89,7 +89,7 @@ timewarrior # timewarrior tracking status (https://timewarrior.net/) # time # current time # =========================[ Line #2 ]========================= - newline + newline # \n # public_ip # public IP address # proxy # system-wide http/https/ftp proxy # battery # internal battery diff --git a/config/p10k-lean-8colors.zsh b/config/p10k-lean-8colors.zsh index a8917178..ccfe6d65 100644 --- a/config/p10k-lean-8colors.zsh +++ b/config/p10k-lean-8colors.zsh @@ -34,7 +34,7 @@ dir # current directory vcs # git status # =========================[ Line #2 ]========================= - newline + newline # \n prompt_char # prompt symbol ) @@ -88,7 +88,7 @@ timewarrior # timewarrior tracking status (https://timewarrior.net/) # time # current time # =========================[ Line #2 ]========================= - newline + newline # \n # public_ip # public IP address # proxy # system-wide http/https/ftp proxy # battery # internal battery diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index b28fbd64..ad23a80f 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -34,7 +34,7 @@ dir # current directory vcs # git status # =========================[ Line #2 ]========================= - newline + newline # \n prompt_char # prompt symbol ) diff --git a/config/p10k-pure.zsh b/config/p10k-pure.zsh index 50299dff..8eeaedac 100644 --- a/config/p10k-pure.zsh +++ b/config/p10k-pure.zsh @@ -42,17 +42,27 @@ # Left prompt segments. typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( + # =========================[ Line #1 ]========================= dir # current directory vcs # git status context # user@host command_execution_time # previous command duration + # =========================[ Line #2 ]========================= newline # \n virtualenv # python virtual environment prompt_char # prompt symbol ) # Right prompt segments. - typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=() + typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( + # =========================[ Line #1 ]========================= + # command_execution_time # previous command duration + # virtualenv # python virtual environment + # context # user@host + # time # current time + # =========================[ Line #2 ]========================= + newline # \n + ) # Basic style options that define the overall prompt look. typeset -g POWERLEVEL9K_BACKGROUND= # transparent background @@ -62,7 +72,7 @@ typeset -g POWERLEVEL9K_VISUAL_IDENTIFIER_EXPANSION= # no segment icons # Add an empty line before each prompt except the first. This doesn't emulate the bug - # in Pure that makes prompt drift down whenever you use the ALT-C binding from fzf or similar. + # in Pure that makes prompt drift down whenever you use the Alt-C binding from fzf or similar. typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true # Magenta prompt symbol if the last command succeeded. @@ -135,6 +145,15 @@ # Remove space between '⇣' and '⇡' and all trailing spaces. typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${${P9K_CONTENT/⇣* ⇡/⇣⇡}// }' + # Grey current time. + typeset -g POWERLEVEL9K_TIME_FOREGROUND=$grey + # Format for the current time: 09:51:02. See `man 3 strftime`. + typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}' + # If set to true, time will update when you hit enter. This way prompts for the past + # commands will contain the start times of their commands rather than the end times of + # their preceding commands. + typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false + # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt # when accepting a command line. Supported values: # diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh index 2381c6f1..8618186c 100644 --- a/config/p10k-rainbow.zsh +++ b/config/p10k-rainbow.zsh @@ -34,7 +34,7 @@ dir # current directory vcs # git status # =========================[ Line #2 ]========================= - newline + newline # \n # prompt_char # prompt symbol ) |