mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 20:28:19 +02:00
* (Bash) Add lazy initialization of `try` and `mise` commands. * (Bash) Removed lazy-loading for `mise`
29 lines
656 B
Plaintext
29 lines
656 B
Plaintext
if command -v mise &> /dev/null; then
|
|
eval "$(mise activate bash)"
|
|
fi
|
|
|
|
if [[ $- == *i* ]] && [[ ${TERM:-} != "dumb" ]] && command -v starship &> /dev/null; then
|
|
eval "$(starship init bash)"
|
|
fi
|
|
|
|
if command -v zoxide &> /dev/null; then
|
|
eval "$(zoxide init bash)"
|
|
fi
|
|
|
|
if command -v try &> /dev/null; then
|
|
try() {
|
|
unset -f try
|
|
eval "$(SHELL=/bin/bash command try init ~/Work/tries)"
|
|
try "$@"
|
|
}
|
|
fi
|
|
|
|
if command -v fzf &> /dev/null; then
|
|
if [[ -f /usr/share/fzf/completion.bash ]]; then
|
|
source /usr/share/fzf/completion.bash
|
|
fi
|
|
if [[ -f /usr/share/fzf/key-bindings.bash ]]; then
|
|
source /usr/share/fzf/key-bindings.bash
|
|
fi
|
|
fi
|