mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-05 20:28:25 +02:00
`try init` defines a shell function named `try`. On subsequent `source ~/.bashrc`, `try init` calls the function (interactive selector) instead of the binary. Adding `command` bypasses the function and always calls the binary. Fixes #4876 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
562 B
Plaintext
25 lines
562 B
Plaintext
if command -v mise &> /dev/null; then
|
|
eval "$(mise activate bash)"
|
|
fi
|
|
|
|
if 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
|
|
eval "$(SHELL=/bin/bash command try init ~/Work/tries)"
|
|
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
|