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
|
2025-04-15 21:45:07 +00:00
|
|
|
|
|
|
|
# vim: set ft=sh expandtab tabstop=4 shiftwidth=4:
|