diff options
Diffstat (limited to 'src/shell/atuin.bash')
| -rw-r--r-- | src/shell/atuin.bash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shell/atuin.bash b/src/shell/atuin.bash index 3d86497b..4530e31e 100644 --- a/src/shell/atuin.bash +++ b/src/shell/atuin.bash @@ -2,7 +2,7 @@ ATUIN_SESSION=$(atuin uuid) export ATUIN_SESSION _atuin_preexec() { - local id; id=$(atuin history start "$1") + local id; id=$(atuin history start -- "$1") export ATUIN_HISTORY_ID="${id}" } @@ -11,13 +11,13 @@ _atuin_precmd() { [[ -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 --exit "${EXIT}" -- "${ATUIN_HISTORY_ID}" &) > /dev/null 2>&1 } __atuin_history () { tput rmkx - HISTORY="$(RUST_LOG=error atuin search -i "${READLINE_LINE}" 3>&1 1>&2 2>&3)" + HISTORY="$(RUST_LOG=error atuin search -i -- "${READLINE_LINE}" 3>&1 1>&2 2>&3)" tput smkx READLINE_LINE=${HISTORY} |
