Compare commits

...

2 commits

Author SHA1 Message Date
Tony Blyler
7ed5fab5d8
add orbstack sourcing if available 2024-11-05 09:07:38 -05:00
Tony Blyler
516d837e19
Use ripgrep for fzf first and then the silver searcher if it isn't available 2024-11-05 09:07:27 -05:00

View file

@ -96,9 +96,20 @@ if [ -e "${XDG_RUNTIME_DIR}/docker.sock" ]; then
export DOCKER_HOST="unix://${XDG_RUNTIME_DIR}/docker.sock" export DOCKER_HOST="unix://${XDG_RUNTIME_DIR}/docker.sock"
fi fi
if command -v fzf &> /dev/null && command -v ag &> /dev/null; then if command -v fzf &> /dev/null; then
export FZF_DEFAULT_COMMAND='ag --skip-vcs-ignores --nocolor -g "" -l' if command -v rg &> /dev/null; then
export FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND}" export FZF_DEFAULT_COMMAND="rg --files --hidden --follow --glob '!.git'"
elif command -v ag &> /dev/null; then
export FZF_DEFAULT_COMMAND='ag --skip-vcs-ignores --nocolor -g "" -l'
fi
if [ -n "${FZF_DEFAULT_COMMAND}" ]; then
export FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND}"
fi
fi
if [ -r "${HOME}/.orbstack/shell/init.zsh" ]; then
source ~/.orbstack/shell/init.zsh 2>/dev/null || :
fi fi
typeset -U path typeset -U path