1
0
Fork 0

zsh: Give up on RPROMPT

This commit is contained in:
Jeremy Kaplan 2021-06-18 15:45:47 -07:00
commit fd9dd613fa

View file

@ -68,14 +68,8 @@ local branch="\$(parse_git_branch)"
local exit_code="%(?..${red}%?%f)"
setopt prompt_subst
if [[ $LOCAL_SESSION -eq 1 ]]; then
export PROMPT="${prompt}"
export RPROMPT="${exit_code} ${lbrkt}${user}${colon}${host}${colon}${dir}${branch}${rbrkt}"
else
export PROMPT="${lbrkt}${user}${colon}${host}${colon}${dir}${branch}${rbrkt} ${exit_code}
export PROMPT="${lbrkt}${user}${colon}${host}${colon}${dir}${branch}${rbrkt} ${exit_code}
${prompt}"
export RPROMPT=""
fi
# aliases
source $HOME/.config/zsh/aliases