Skip to content

Commit

Permalink
fix zsh prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
joknarf committed Jan 15, 2024
1 parent 8b01e5a commit 09798bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions redo
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ redodel()

_redo_selector()
{
typeset _redo _hist _orig="$1"
tput el >&2
[ "$ZSH_VERSION" ] && _orig=""
printf "%s\n" "$_orig" >&2
typeset _redo _hist
[ "$BASH" ] && tput el >&2 && printf "%s" "$1" >&2
printf "\n" >&2
_redo="$(selector -p redo -m 10 -d _redo_del -i "$(_get_hist |grep "$1")" || printf "%s" "$1")"
printf "%s" "$_redo" | awk '{gsub(ret,"\n")}1' ret='↵ '
tput cuu1 >&2
Expand Down

0 comments on commit 09798bc

Please sign in to comment.