Add bash configuration

This commit is contained in:
David Heinemeier Hansson
2025-06-01 11:56:03 +02:00
parent 9d36e5418b
commit 81b617ea26
9 changed files with 194 additions and 0 deletions

16
default/bash/init Normal file
View File

@ -0,0 +1,16 @@
if command -v mise &> /dev/null; then
eval "$(mise activate bash)"
fi
if command -v zoxide &> /dev/null; then
eval "$(zoxide init bash)"
fi
if command -v fzf &> /dev/null; then
if [[ -f /usr/share/bash-completion/completions/fzf ]]; then
source /usr/share/bash-completion/completions/fzf
fi
if [[ -f /usr/share/doc/fzf/examples/key-bindings.bash ]]; then
source /usr/share/doc/fzf/examples/key-bindings.bash
fi
fi