.oh-my-zsh.cust/themes/mhoward.zsh-theme

changeset 276
b9c8bfdfe163
parent 234
a48cd1432365
child 513
a8caf462bfc0
equal deleted inserted replaced
275:c636b6086bb2 276:b9c8bfdfe163
17 # ------------------------------------------------------------------------------ 17 # ------------------------------------------------------------------------------
18 18
19 19
20 # Customizable parameters. 20 # Customizable parameters.
21 PROMPT_PATH_MAX_LENGTH=30 21 PROMPT_PATH_MAX_LENGTH=30
22 PROMPT_DEFAULT_END=❯ 22 PROMPT_DEFAULT_END='❯'
23 PROMPT_ROOT_END=❯❯❯ 23 PROMPT_ROOT_END='❯❯❯'
24 PROMPT_SUCCESS_COLOR=$FG[071] 24 PROMPT_SUCCESS_COLOR=$FG[071]
25 PROMPT_FAILURE_COLOR=$FG[124] 25 PROMPT_FAILURE_COLOR=$FG[124]
26 PROMPT_VCS_INFO_COLOR=$FG[242] 26 PROMPT_VCS_INFO_COLOR=$FG[242]
27 27
28 if ! [[ $LC_CTYPE =~ 'UTF-8$' ]] 28 if [[ ! $LC_CTYPE =~ 'UTF-8$' || "$(print -P %l)" =~ '^[0-9v]' ]]
29 then 29 then
30 PROMPT_DEFAULT_END=\$ 30 PROMPT_DEFAULT_END='%%'
31 PROMPT_ROOT_END=\# 31 PROMPT_ROOT_END='#'
32 fi 32 fi
33 33
34 # Set required options. 34 # Set required options.
35 setopt promptsubst 35 setopt promptsubst
36 36

mercurial