Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

exa -> eza #4

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div align="center">

# asdf-exa ![Build](https://github.com/nyrst/asdf-exa/workflows/Build/badge.svg) ![Lint](https://github.com/nyrst/asdf-exa/workflows/Lint/badge.svg)
# asdf-eza ![Build](https://github.com/jc00ke/asdf-eza/workflows/Build/badge.svg) ![Lint](https://github.com/jc00ke/asdf-eza/workflows/Lint/badge.svg)

[exa](https://the.exa.website/) plugin for the [asdf version manager](https://asdf-vm.com).
[eza](https://github.com/eza-community/eza) plugin for the [asdf version manager](https://asdf-vm.com).

</div>

Expand All @@ -22,25 +22,25 @@
Plugin:

```shell
asdf plugin add exa
asdf plugin add eza
# or
asdf plugin add exa https://github.com/nyrst/asdf-exa.git
asdf plugin add eza https://github.com/jc00ke/asdf-eza.git
```

exa:
eza:

```shell
# Show all installable versions
asdf list-all exa
asdf list-all eza

# Install specific version
asdf install exa latest
asdf install eza latest

# Set a version globally (on your ~/.tool-versions file)
asdf global exa latest
asdf global eza latest

# Now exa commands are available
exa --version
# Now eza commands are available
eza --version
```

Check [asdf](https://github.com/asdf-vm/asdf) readme for more instructions on how to
Expand All @@ -50,7 +50,7 @@ install & manage versions.

Contributions of any kind welcome! See the [contributing guide](contributing.md).

[Thanks goes to these contributors](https://github.com/nyrst/asdf-exa/graphs/contributors)!
[Thanks goes to these contributors](https://github.com/jc00ke/asdf-eza/graphs/contributors)!

# License

Expand Down
2 changes: 1 addition & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Testing Locally:
asdf plugin test <plugin-name> <plugin-url> [--asdf-tool-version <version>] [--asdf-plugin-gitref <git-ref>] [test-command*]

#
asdf plugin test exa https://github.com/nyrst/asdf-exa.git "exa --version"
asdf plugin test eza https://github.com/jc00ke/asdf-eza.git "eza --version"
```

Tests are automatically run in GitHub Actions on push and PR.
8 changes: 4 additions & 4 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

set -euo pipefail

GH_REPO="https://github.com/ogham/exa"
TOOL_NAME="exa"
TOOL_TEST="exa --version"
GH_REPO="https://github.com/eza-community/eza"
TOOL_NAME="eza"
TOOL_TEST="eza --version"

fail() {
echo -e "asdf-$TOOL_NAME: $*"
Expand Down Expand Up @@ -51,7 +51,7 @@ download_release() {
*) fail "Unsupported architecture" ;;
esac

url="$GH_REPO/releases/download/v${version}/exa-${platform}-${architecture}-v${version}.zip"
url="$GH_REPO/releases/download/v${version}/eza-${platform}-${architecture}-v${version}.zip"

echo "* Downloading $TOOL_NAME release $version..."
curl "${curl_opts[@]}" -o "$filename" -C - "$url" || fail "Could not download $url"
Expand Down