asdf.plugin.zsh 427 B

1234567891011121314151617
  1. # Find where asdf should be installed
  2. ASDF_DIR="${ASDF_DIR:-$HOME/.asdf}"
  3. # If not found, check for Homebrew package
  4. if [[ ! -d $ASDF_DIR ]] && (( $+commands[brew] )); then
  5. ASDF_DIR="$(brew --prefix asdf)"
  6. fi
  7. # Load command
  8. if [[ -f "$ASDF_DIR/asdf.sh" ]]; then
  9. . "$ASDF_DIR/asdf.sh"
  10. # Load completions
  11. if [[ -f "$ASDF_DIR/completions/asdf.bash" ]]; then
  12. . "$ASDF_DIR/completions/asdf.bash"
  13. fi
  14. fi