fix(fish): use fish builtins for enter_accept
(#1373)
This commit is contained in:
parent
891e8e548b
commit
3531853b2c
1 changed files with 4 additions and 9 deletions
|
@ -23,15 +23,10 @@ function _atuin_search
|
||||||
if test -n "$ATUIN_H"
|
if test -n "$ATUIN_H"
|
||||||
if string match --quiet '__atuin_accept__:*' "$ATUIN_H"
|
if string match --quiet '__atuin_accept__:*' "$ATUIN_H"
|
||||||
set -l ATUIN_HIST (string match --regex '__atuin_accept__:(.*|\s*)' "$ATUIN_H" | awk 'NR == 2')
|
set -l ATUIN_HIST (string match --regex '__atuin_accept__:(.*|\s*)' "$ATUIN_H" | awk 'NR == 2')
|
||||||
echo $ATUIN_HIST
|
commandline -r "$ATUIN_HIST"
|
||||||
# Need to run the pre/post exec functions manually
|
commandline -f repaint
|
||||||
_atuin_preexec $ATUIN_HIST
|
commandline -f execute
|
||||||
eval $ATUIN_HIST
|
return
|
||||||
_atuin_postexec
|
|
||||||
# Allow space for repainting the prompt, this will work for prompts up to 2 lines
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
commandline -r ""
|
|
||||||
else
|
else
|
||||||
commandline -r "$ATUIN_H"
|
commandline -r "$ATUIN_H"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue