mirror of
https://github.com/atuinsh/atuin.git
synced 2024-12-25 00:19:54 +01:00
Update widget
This commit is contained in:
parent
d8aacb4a80
commit
b85cb770d3
@ -16,7 +16,16 @@ _atuin_precmd(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
_atuin_search(){
|
_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
|
add-zsh-hook preexec _atuin_preexec
|
||||||
|
Loading…
Reference in New Issue
Block a user