diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-08-14 07:57:25 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-08-14 08:28:50 +0300 |
commit | 4ba78dc2be7bc5cb10231d5fbeefaa0f2967b0f4 (patch) | |
tree | a40eb07bc39c609657612337b03a88cc43ae23eb /internal/wizard.zsh | |
parent | d68bd813aeba8d0c19f2ff4a04c50ce5971a9915 (diff) |
shorten git branch name if over 32 chars long; tune colors
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-x | internal/wizard.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 5f9d6f96..364446b2 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -894,6 +894,10 @@ function generate_config() { lines=("${(@)lines/#(#b)([[:space:]]#)\# $1( |)/$match[1]$1$match[2]$match[2]}") } + function rep() { + lines=("${(@)lines//$1/$2}") + } + sub MODE $POWERLEVEL9K_MODE if (( cap_narrow_icons )); then @@ -936,6 +940,8 @@ function generate_config() { sub LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL "'$left_head'" sub RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL "'$right_head'" sub RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL "'$right_tail'" + sub VCS_LOADING_FOREGROUND $sep_color[$color] + rep '%248F' "%$prefix_color[$color]F" fi if [[ -n ${(j::)extra_icons} ]]; then |