flocon/home/.config/bash/hooks.sh

20 lines
410 B
Bash

# Hook direnv if present
if command -v direnv >/dev/null; then
eval "$(direnv hook bash)"
fi
# Prompt
if command -v starship >/dev/null; then
source <(starship init bash)
fi
# Launch atuin if it is installed
if command -v atuin >/dev/null; then
source <(atuin init bash)
fi
# Init zoxide if present and alias cd to it
if command -v zoxide >/dev/null; then
eval "$(zoxide init bash)"
alias cd=z
fi