zsh: Give up on RPROMPT
This commit is contained in:
parent
d276d16637
commit
fd9dd613fa
1 changed files with 1 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue