Update widget

This commit is contained in:
Ellie Huxtable 2021-02-13 22:24:23 +00:00
parent d8aacb4a80
commit b85cb770d3

View file

@ -16,7 +16,16 @@ _atuin_precmd(){
}
_atuin_search(){
$(atuin history list --distinct | $ATUIN_FUZZY)
emulate -L zsh
zle -I
output=$(atuin history list --distinct | $ATUIN_FUZZY)
if [[ -n $output ]] ; then
LBUFFER=$output
fi
zle reset-prompt
}
add-zsh-hook preexec _atuin_preexec