dotfiles/chezmoi.roots/_src.posix/private_dot_config/sz.env/zzy_atuin.env.bash

18 lines
564 B
Bash
Raw Normal View History

2024-09-19 04:31:48 +00:00
#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"'
if is_cmd atuin; then
2025-04-17 19:50:23 +00:00
if ! [[ -n "$SZ_ENV_BASH_LOAD_PREEXEC$BLE_VERSION" ]]; then
2024-09-19 04:31:48 +00:00
printf '%s\n' \
'atuin was found, but bash-preexec or ble.sh are not loaded,' \
'to load atuin, first run update-ble.sh or update-bash-preexec ' \
'then relaod (_r) the shell.'
fi
2025-04-17 19:50:23 +00:00
. <( atuin init bash )
. <( atuin gen-completions --shell bash )
2024-09-19 04:31:48 +00:00
[[ -n "${DBG}" ]] && echo "atuin loaded."
fi
# vim: set ft=sh expandtab tabstop=4 shiftwidth=4: