diff options
Diffstat (limited to 'runcoms/zshrc')
| -rw-r--r-- | runcoms/zshrc | 12 |
1 files changed, 9 insertions, 3 deletions
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 |