=First commit
This commit is contained in:
parent
14020e28d4
commit
7ce0f968e8
27 changed files with 476 additions and 0 deletions
17
_home/private_dot_config/sz.env/zza_atuin.env
Normal file
17
_home/private_dot_config/sz.env/zza_atuin.env
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env -S bash -c 'echo "Not a user script. source(aka .) only"'
|
||||
|
||||
BASE_SHELL=${BASE_SHELL:-${SHELL##*/}}
|
||||
|
||||
if is_cmd atuin; then
|
||||
if [[ "${BASE_SHELL}" == "bash" ]] && ! [[ -n "$SZ_ENV_BASH_LOAD_PREEXEC$BLE_VERSION" ]]; then
|
||||
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
|
||||
|
||||
. <( atuin init "${BASE_SHELL}" )
|
||||
. <( atuin gen-completions --shell ${BASE_SHELL} )
|
||||
|
||||
[[ -n "${DBG}" ]] && echo "atuin loaded."
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue