diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-01-21 13:38:34 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-01-21 13:38:34 +0300 |
commit | 7144ebb46531d7bde302ad9e323cf48fc461c90f (patch) | |
tree | f5a3c85e89349f567ce86a7a90a7659b061793e8 /config/p10k-pure.zsh | |
parent | 9586e24dfb71752afa04db77ad7e79c7430b883b (diff) |
add snazzy color scheme option to pure style
Diffstat (limited to 'config/p10k-pure.zsh')
-rw-r--r-- | config/p10k-pure.zsh | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/config/p10k-pure.zsh b/config/p10k-pure.zsh index 1bdc58a7..f7a6dd1c 100644 --- a/config/p10k-pure.zsh +++ b/config/p10k-pure.zsh @@ -30,6 +30,15 @@ # Unset all configuration options. unset -m 'POWERLEVEL9K_*' + # Prompt colors. + local grey=242 + local red=1 + local yellow=3 + local blue=4 + local magenta=5 + local cyan=6 + local white=7 + # Left prompt segments. typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( dir # current directory @@ -56,9 +65,9 @@ typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true # Magenta prompt symbol if the last command succeeded. - typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS}_FOREGROUND=magenta + typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS}_FOREGROUND=$magenta # Red prompt symbol if the last command failed. - typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS}_FOREGROUND=red + typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS}_FOREGROUND=$red # Default prompt symbol. typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯' # Prompt symbol in command vi mode. @@ -69,18 +78,18 @@ typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=false # Grey Python Virtual Environment. - typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=242 + typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=$grey # Don't show Python version. typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER= # Blue current directory. - typeset -g POWERLEVEL9K_DIR_FOREGROUND=blue + typeset -g POWERLEVEL9K_DIR_FOREGROUND=$blue # Context format when root: user@host. The first part white, the rest grey. - typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%7F%n%f%242F@%m%f' + typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE="%F{$white}%n%f%F{$grey}@%m%f" # Context format when not root: user@host. The whole thing grey. - typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%242F%n@%m%f' + typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE="%F{$grey}%n@%m%f" # Don't show context unless root or in SSH. typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_CONTENT_EXPANSION= @@ -91,10 +100,10 @@ # Duration format: 1d 2h 3m 4s. typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s' # Yellow previous command duration. - typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=yellow + typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=$yellow # Grey Git prompt. This makes stale prompts indistinguishable from up-to-date ones. - typeset -g POWERLEVEL9K_VCS_FOREGROUND=242 + typeset -g POWERLEVEL9K_VCS_FOREGROUND=$grey # Disable async loading indicator to make directories that aren't Git repositories # indistinguishable from large Git repositories without known state. @@ -105,7 +114,7 @@ typeset -g POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS=0 # Cyan ahead/behind arrows. - typeset -g POWERLEVEL9K_VCS_{INCOMING,OUTGOING}_CHANGESFORMAT_FOREGROUND=cyan + typeset -g POWERLEVEL9K_VCS_{INCOMING,OUTGOING}_CHANGESFORMAT_FOREGROUND=$cyan # Don't show remote branch, current tag or stashes. typeset -g POWERLEVEL9K_VCS_GIT_HOOKS=(vcs-detect-changes git-untracked git-aheadbehind) # Don't show the branh icon. |