mirror of
https://github.com/atuinsh/atuin.git
synced 2024-12-23 23:50:02 +01:00
Update widget
This commit is contained in:
parent
d8aacb4a80
commit
b85cb770d3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user