cleanup prompt (getting ready to merge w/ wunjo git prompt theme)
This commit is contained in:
parent
873cce8860
commit
c965d344da
1 changed files with 4 additions and 11 deletions
15
zsh/zshrc
15
zsh/zshrc
|
|
@ -212,8 +212,8 @@ eval exitCode='%(0?..${bWhiteOnRed}-%?-${none} )'
|
||||||
eval dirpath='${bGreen}%(4~!.../%3~!%~)${none}'
|
eval dirpath='${bGreen}%(4~!.../%3~!%~)${none}'
|
||||||
eval job='%(1j.${bYellow}[%j] .)'
|
eval job='%(1j.${bYellow}[%j] .)'
|
||||||
#hist="${whiteOnBlue}%5h${none}|"
|
#hist="${whiteOnBlue}%5h${none}|"
|
||||||
eval user='%(0#.${bRed}.${bBlue})%n${none}'
|
eval user='%(0#.${bRed}.${yellow})%n${none}'
|
||||||
eval at='${grey}@${none}'
|
eval at='${blue}@${none}'
|
||||||
|
|
||||||
case $HOSTNAME in
|
case $HOSTNAME in
|
||||||
Samis-MacBook)
|
Samis-MacBook)
|
||||||
|
|
@ -235,23 +235,16 @@ esac
|
||||||
|
|
||||||
eval host='${host}%m${none}'
|
eval host='${host}%m${none}'
|
||||||
|
|
||||||
# moved dir to rprompt
|
|
||||||
#PROMPT=`echo -n "${hist}${exitCode}${job}${user}${at}${host}${grey}:${none}${dirpath}${bWhite}%#${none} "`
|
|
||||||
|
|
||||||
if [[ "x$INSIDE_EMACS" != "x" ]] || [[ "$EMACS" = "t" ]]; then
|
if [[ "x$INSIDE_EMACS" != "x" ]] || [[ "$EMACS" = "t" ]]; then
|
||||||
export PROMPT="%d %% "
|
export PROMPT="%d %% "
|
||||||
export PAGER=cat
|
export PAGER=cat
|
||||||
export MANPAGER=cat
|
export MANPAGER=cat
|
||||||
else
|
else
|
||||||
PROMPT=`echo -n "${exitCode}${job}${user}${at}${host}${bWhite}%#${none} "`
|
PROMPT=`echo -n "${exitCode}${job}${dirpath} ${git} ${bWhite}%#${none} "`
|
||||||
RPROMPT=`echo -n "${blue}[${dirpath}${blue}]${none} %t"`
|
RPROMPT=`echo -n "${user}${at}${host}"`
|
||||||
eval export PROMPT=$'${PROMPT}'
|
eval export PROMPT=$'${PROMPT}'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# PROMPT=`echo -n "${exitCode}${job}${user}${at}${host}${bWhite}%#${none} "`
|
|
||||||
# eval export PROMPT=$'${PROMPT}'
|
|
||||||
# RPROMPT=`echo -n "${blue}[${dirpath}${blue}]${none} %t"`
|
|
||||||
|
|
||||||
|
|
||||||
# 7. Aliases
|
# 7. Aliases
|
||||||
# ===========
|
# ===========
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue