remove unused environment var loading entire history into an env var (#242)

This commit is contained in:
Mat Jones 2021-12-16 14:45:05 -05:00 committed by GitHub
parent 079d8037ab
commit 059e858a00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,4 @@
set -gx ATUIN_SESSION (atuin uuid)
set -gx ATUIN_HISTORY (atuin history list)
function _atuin_preexec --on-event fish_preexec
set -gx ATUIN_HISTORY_ID (atuin history start "$argv[1]")
@ -9,7 +7,8 @@ end
function _atuin_postexec --on-event fish_postexec
set s $status
if test -n "$ATUIN_HISTORY_ID"
RUST_LOG=error atuin history end $ATUIN_HISTORY_ID --exit $s &; disown
RUST_LOG=error atuin history end $ATUIN_HISTORY_ID --exit $s &
disown
end
end
@ -22,7 +21,7 @@ function _atuin_search
end
if test -z $ATUIN_NOBIND
bind -k up '_atuin_search'
bind \eOA '_atuin_search'
bind \e\[A '_atuin_search'
bind -k up _atuin_search
bind \eOA _atuin_search
bind \e\[A _atuin_search
end