Skip to content

Instantly share code, notes, and snippets.

@dbernheisel
Last active November 28, 2025 15:24
Show Gist options
  • Select an option

  • Save dbernheisel/b533b289fd5ed13f8333ae92a71c9606 to your computer and use it in GitHub Desktop.

Select an option

Save dbernheisel/b533b289fd5ed13f8333ae92a71c9606 to your computer and use it in GitHub Desktop.
Update Expert LSP quickly
#!/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}"
@inooid
Copy link

inooid commented Nov 28, 2025

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

@dbernheisel
Copy link
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