diff options
| author | Vladislav Stepanov <8uk.8ak@gmail.com> | 2023-04-14 23:18:58 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-14 20:18:58 +0100 |
| commit | c05d2850420a2c163b8f62c33a6cef7c0ae1ad8d (patch) | |
| tree | 2c44a44eda7e76fa74e78ac1fd02f55c1ed4d804 /src/shell/atuin.bash | |
| parent | Switch to uuidv7 (#864) (diff) | |
| download | atuin-c05d2850420a2c163b8f62c33a6cef7c0ae1ad8d.zip | |
Workspace reorder (#868)
* Try different workspace structure
Move main crate (atuin) to be on the same level with other crates in
this workspace
* extract common dependencies to the workspace definition
* fix base64 v0.21 deprecation warning
* questionable: update deps & fix chrono deprecations
possible panic sites are unchanged, they're just more visible now
* Revert "questionable: update deps & fix chrono deprecations"
This reverts commit 993e60f8dea81a1625a04285a617959ad09a0866.
Diffstat (limited to 'src/shell/atuin.bash')
| -rw-r--r-- | src/shell/atuin.bash | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/shell/atuin.bash b/src/shell/atuin.bash deleted file mode 100644 index 1056dcf5..00000000 --- a/src/shell/atuin.bash +++ /dev/null @@ -1,34 +0,0 @@ -ATUIN_SESSION=$(atuin uuid) -export ATUIN_SESSION - -_atuin_preexec() { - local id - id=$(atuin history start -- "$1") - export ATUIN_HISTORY_ID="${id}" -} - -_atuin_precmd() { - local EXIT="$?" - - [[ -z "${ATUIN_HISTORY_ID}" ]] && return - - (RUST_LOG=error atuin history end --exit "${EXIT}" -- "${ATUIN_HISTORY_ID}" &) >/dev/null 2>&1 -} - -__atuin_history() { - tput rmkx - # shellcheck disable=SC2048,SC2086 - HISTORY="$(RUST_LOG=error atuin search $* -i -- "${READLINE_LINE}" 3>&1 1>&2 2>&3)" - tput smkx - - READLINE_LINE=${HISTORY} - READLINE_POINT=${#READLINE_LINE} -} - -if [[ -n "${BLE_VERSION-}" ]]; then - blehook PRECMD-+=_atuin_precmd - blehook PREEXEC-+=_atuin_preexec -else - precmd_functions+=(_atuin_precmd) - preexec_functions+=(_atuin_preexec) -fi |
