diff options
| author | Patrick Jackson <patrick@jackson.dev> | 2023-11-03 13:15:58 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-03 19:15:58 +0000 |
| commit | 3531853b2c2248888722ac3a390fa8ef36f96c9c (patch) | |
| tree | f959ad77c3e0f54d02a2d7c55663738f35f7b527 | |
| parent | fix(fish): clean up the fish script options (#1370) (diff) | |
| download | atuin-3531853b2c2248888722ac3a390fa8ef36f96c9c.zip | |
fix(fish): use fish builtins for `enter_accept` (#1373)
| -rw-r--r-- | atuin/src/shell/atuin.fish | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/atuin/src/shell/atuin.fish b/atuin/src/shell/atuin.fish index d6e5a910..bff37443 100644 --- a/atuin/src/shell/atuin.fish +++ b/atuin/src/shell/atuin.fish @@ -23,15 +23,10 @@ function _atuin_search if test -n "$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') - echo $ATUIN_HIST - # Need to run the pre/post exec functions manually - _atuin_preexec $ATUIN_HIST - eval $ATUIN_HIST - _atuin_postexec - # Allow space for repainting the prompt, this will work for prompts up to 2 lines - echo - echo - commandline -r "" + commandline -r "$ATUIN_HIST" + commandline -f repaint + commandline -f execute + return else commandline -r "$ATUIN_H" end |
