fix(bash): improve output of enter_accept (#1342)

This commit is contained in:
Patrick Jackson 2023-10-27 01:46:22 -06:00 committed by GitHub
parent a57baffa91
commit fa7caf430a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,8 +23,12 @@ __atuin_history() {
if [[ $HISTORY == __atuin_accept__:* ]]
then
HISTORY=${HISTORY#__atuin_accept__:}
echo "$HISTORY"
# Need to run the pre/post exec functions manually
_atuin_preexec "$HISTORY"
eval "$HISTORY"
_atuin_precmd
echo
else
READLINE_LINE=${HISTORY}
READLINE_POINT=${#READLINE_LINE}