Skip to content

Commit

Permalink
Add $RPS1 support to znap prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed May 5, 2022
1 parent c76ca1b commit f4778fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions functions/.znap.prompt
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ autoload -Uz add-zsh-hook add-zle-hook-widget promptinit
fi

setopt NO_promptsp
[[ -o promptcr ]] &&
print -n $'\r'
:
print -nPr -- "$PS1"
print -nPr -- "%$COLUMNS<<${(l:$COLUMNS:: :)}$RPS1"
print -nPr -- $'\r'"$PS1"
..znap.tput cnorm # Make cursor normal (visible).
true
}
Expand Down

0 comments on commit f4778fd

Please sign in to comment.