Make prompt character depend on whether in tty

This commit is contained in:
Ian Adam Naval 2014-10-23 09:03:21 -04:00
parent 313f5bc240
commit 4493e70c3f

View File

@ -55,7 +55,11 @@ function prompt_ianonavy_setup {
# Set editor-info params
zstyle ':prezto:module:editor:info:completing' format '${_prompt_ianonavy_colors[5]}...${_prompt_ianonavy_nocolor}'
zstyle ':prezto:module:editor:info:keymap:primary' format '➤'
if tty | fgrep pts >/dev/null ; then
zstyle ':prezto:module:editor:info:keymap:primary' format '➤'
else
zstyle ':prezto:module:editor:info:keymap:primary' format '>'
fi
zstyle ':prezto:module:editor:info:keymap:primary:overwrite' format '♺'
zstyle ':prezto:module:editor:info:keymap:alternate' format '⍟'