diff options
author | Koichi Murase <myoga.murase@gmail.com> | 2024-04-17 21:56:07 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-17 13:56:07 +0100 |
commit | 4f26963c9968400e12251be8cf671a5d40680451 (patch) | |
tree | ab7b0b25c7d070b5720243ef7e65a3a6ed51afb1 /Dockerfile | |
parent | 19f70cdc918769e0485b0e4aba4069327e96dc3b (diff) |
feat(doctor): detect active preexec framework (#1955)
* feat(doctor): check active preexec framework
To check if "blesh" or "bash-preexec" is loaded and active in the
current Bash session where `atuin doctor` is called, we make the Atuin
integration script for Bash to set the environment variable
`ATUIN_PREEXEC_BACKEND` and store a string when it detects "blesh" or
"bash-preexec".
To check whether the obtained ATUIN_PREEXEC_BACKEND is set by the
current session, we record SHLVL in ATUIN_PREEXEC_BACKEND and check if
it matches SHLVL of the current process.
* feat(doctor): detect the case where Atuin is initialized before blesh
Diffstat (limited to 'Dockerfile')
0 files changed, 0 insertions, 0 deletions