Try to avoid utf-8 if we don't seem to support it

Sun, 03 Jan 2016 05:06:48 +0000

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 03 Jan 2016 05:06:48 +0000
changeset 234
a48cd1432365
parent 233
e31c379b5bda
child 235
427e2305c146

Try to avoid utf-8 if we don't seem to support it

.oh-my-zsh.cust/themes/mhoward.zsh-theme file | annotate | diff | comparison | revisions
--- a/.oh-my-zsh.cust/themes/mhoward.zsh-theme
+++ b/.oh-my-zsh.cust/themes/mhoward.zsh-theme
@@ -25,6 +25,12 @@ PROMPT_SUCCESS_COLOR=$FG[071]
 PROMPT_FAILURE_COLOR=$FG[124]
 PROMPT_VCS_INFO_COLOR=$FG[242]
 
+if ! [[ $LC_CTYPE =~ 'UTF-8$' ]]
+then
+  PROMPT_DEFAULT_END=\$
+  PROMPT_ROOT_END=\#
+fi
+
 # Set required options.
 setopt promptsubst
 

mercurial