remove unused environment var loading entire history into an env var (#242)
This commit is contained in:
parent
079d8037ab
commit
059e858a00
1 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue