Run shellcheck on bash file (#81)

Ref #64
This commit is contained in:
Yuvi Panda 2021-05-09 17:42:09 +05:30 committed by GitHub
parent a04865d9d8
commit c69f6ee3f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,14 +9,14 @@ _atuin_precmd() {
[[ -z "${ATUIN_HISTORY_ID}" ]] && return [[ -z "${ATUIN_HISTORY_ID}" ]] && return
(RUST_LOG=error atuin history end $ATUIN_HISTORY_ID --exit $EXIT &) > /dev/null 2>&1 (RUST_LOG=error atuin history end "$ATUIN_HISTORY_ID" --exit $EXIT &) > /dev/null 2>&1
} }
__atuin_history () __atuin_history ()
{ {
tput rmkx tput rmkx
HISTORY="$(RUST_LOG=error atuin search -i $BUFFER 3>&1 1>&2 2>&3)" HISTORY="$(RUST_LOG=error atuin search -i "$BUFFER" 3>&1 1>&2 2>&3)"
tput smkx tput smkx
READLINE_LINE=${HISTORY} READLINE_LINE=${HISTORY}