13 lines
758 B
Bash
13 lines
758 B
Bash
# ╭──────────────────────────────────────────────────────────╮
|
|
# │ Auto drop into fish only on login │
|
|
# ╰──────────────────────────────────────────────────────────╯
|
|
|
|
if [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} && ${SHLVL} == 1 ]]; then
|
|
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=''
|
|
exec fish $LOGIN_OPTION
|
|
fi
|
|
|
|
. "$HOME/.atuin/bin/env"
|
|
|
|
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
|
|
eval "$(atuin init bash)"
|