Last active
November 28, 2025 15:24
-
-
Save dbernheisel/b533b289fd5ed13f8333ae92a71c9606 to your computer and use it in GitHub Desktop.
Update Expert LSP quickly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env zsh | |
| # put this script into ~/.local/bin/update-expert | |
| # and then you should be able to run `update-expert` and restart your LSP server/editor | |
| set -e | |
| cd ~/.local/bin || exit | |
| # lowercase assignments | |
| declare -l file | |
| file="expert_$(uname)_$(uname -m)" | |
| wget -q --show-progress "https://github.com/elixir-lang/expert/releases/download/nightly/${file}" -O "$file" | |
| xattr -d com.apple.quarantine "${HOME}/.local/bin/${file}" &>/dev/null || true | |
| chmod +x "${HOME}/.local/bin/${file}" | |
| echo "Updated ${HOME}/.local/bin/${file}" |
Author
Correct -- not needed for Zed, however could be helpful for neovim users.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Correct me if I am wrong, but for Zed users that stumble across this, we shouldn't be needing this script anymore as the Elixir extension now pulls the latest nightly based on the checksum. See: zed-extensions/elixir#44