Respect fish shell's builtin private mode (#577)

This commit is contained in:
Patrick Jackson 2022-10-20 22:35:40 -07:00 committed by GitHub
parent 17c2e73388
commit 90d089c73e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,9 @@
set -gx ATUIN_SESSION (atuin uuid)
function _atuin_preexec --on-event fish_preexec
set -gx ATUIN_HISTORY_ID (atuin history start -- "$argv[1]")
if not test -n "$fish_private_mode"
set -gx ATUIN_HISTORY_ID (atuin history start -- "$argv[1]")
end
end
function _atuin_postexec --on-event fish_postexec