bash: add hooks
This commit is contained in:
parent
4d8ce1eac1
commit
5a247abdc4
1 changed files with 20 additions and 0 deletions
20
home/.config/bash/hooks.sh
Normal file
20
home/.config/bash/hooks.sh
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# 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
|
||||
eval "$(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
|
||||
Loading…
Add table
Add a link
Reference in a new issue