diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-06-28 13:29:12 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-06-28 13:29:12 +0200 |
| commit | cd3948f4d8c338ed47ffd28f7cb92d5e6ced80e8 (patch) | |
| tree | c001d73362bb0e14c33500c996d815dc4487fbd2 /runcoms | |
| parent | 8cbd4ff09c6ad07aff34ceddcf37f6b74148a943 (diff) | |
Add linux compatibility fixes
Diffstat (limited to 'runcoms')
| -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 |