diff options
| author | Patrick Jackson <patrick@jackson.dev> | 2022-10-20 22:35:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-21 06:35:40 +0100 |
| commit | 90d089c73ee1b4ed1d1deb77921732ddff23e2df (patch) | |
| tree | ce60685cdf828f77c88e641d43ef3fb828a74bf4 /src/shell | |
| parent | Never use HISTFILE for fish shell import (#573) (diff) | |
| download | atuin-90d089c73ee1b4ed1d1deb77921732ddff23e2df.zip | |
Respect fish shell's builtin private mode (#577)
Diffstat (limited to '')
| -rw-r--r-- | src/shell/atuin.fish | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shell/atuin.fish b/src/shell/atuin.fish index 4f838f38..f675d638 100644 --- a/src/shell/atuin.fish +++ b/src/shell/atuin.fish @@ -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 |
