X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/fab93d61dc5d1cb52f6e3e83a99fc0aeaa2cb29a..cd3948f4d8c338ed47ffd28f7cb92d5e6ced80e8:/runcoms/zshrc diff --git a/runcoms/zshrc b/runcoms/zshrc index 9f53b8b..780b526 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -51,7 +51,7 @@ export VIRTUALENVWRAPPER_PYTHON="/usr/local/bin/python3" export GPG_TTY=$(tty) # FZF Config -export FZF_DEFAULT_COMMAND='/usr/local/bin/rg --color never --files --hidden -g \!.git' +export FZF_DEFAULT_COMMAND='/usr/bin/env rg --color never --files --hidden -g \!.git' export FZF_DEFAULT_OPTS='--preview ''bat --style=numbers --color=always {} | head -500''' # Z @@ -71,7 +71,13 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zshrc.local" ]]; then source "${ZDOTDIR:-$HOME}/.zshrc.local" fi -eval $(/usr/libexec/path_helper -s) +if command -v brew &> /dev/null; then + eval $(/usr/libexec/path_helper -s) +fi # ASDF -. $(brew --prefix asdf)/asdf.sh +if ! command -v brew &> /dev/null; then + . $HOME/.asdf/asdf.sh +else + . $(brew --prefix asdf)/asdf.sh +fi