~yerinalexey/dotfiles

a5d9b728127ab982c369d84b635ab029dbcf033c — Alexey Yerin 8 months ago e58290c
zsh: update prompt
1 files changed, 13 insertions(+), 10 deletions(-)

M zsh/p10k.zsh
M zsh/p10k.zsh => zsh/p10k.zsh +13 -10
@@ 32,8 32,6 @@
    dir                       # current directory
    vcs                       # git status
    command_execution_time    # previous command duration
    # =========================[ Line #2 ]=========================
    newline                   # \n
    prompt_char               # prompt symbol
  )



@@ 55,15 53,20 @@
  # Red prompt symbol if the last command failed.
  typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS}_FOREGROUND=$red
  # Default prompt symbol.
  typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯'
  typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='>'
  # Prompt symbol in Vi mode.
  typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮'
  typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='❮'
  typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION=':'
  typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION=':'
  typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true

  # --- Current directory module ---
  typeset -g POWERLEVEL9K_DIR_FOREGROUND=$blue

	# Shorten directory
  typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=240
	typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
  typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1

  # --- Time module ---
  typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=$yellow



@@ 88,11 91,11 @@
  typeset -g POWERLEVEL9K_VCS_GIT_HOOKS=(vcs-detect-changes git-tagname git-untracked git-aheadbehind)

  # Icons
  typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='on  ' # Current branch
  typeset -g POWERLEVEL9K_VCS_COMMIT_ICON='@'     # Detached HEAD
  typeset -g POWERLEVEL9K_VCS_STAGED_ICON='+'     # Changed files count
  typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON='?'  # Untracked files count
  typeset -g POWERLEVEL9K_VCS_UNSTAGED_ICON='*'   # Unstaged files count
  typeset -g POWERLEVEL9K_VCS_BRANCH_ICON=''     # Current branch
  typeset -g POWERLEVEL9K_VCS_COMMIT_ICON='@'    # Detached HEAD
  typeset -g POWERLEVEL9K_VCS_STAGED_ICON='+'    # Changed files count
  typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON='?' # Untracked files count
  typeset -g POWERLEVEL9K_VCS_UNSTAGED_ICON='*'  # Unstaged files count

  # --- Misc ---
  # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt