Skip to content

Instantly share code, notes, and snippets.

@rainrisa
Created May 25, 2025 11:55
Show Gist options
  • Select an option

  • Save rainrisa/11f16a2e84bd2726bd3d4808ef22cdc5 to your computer and use it in GitHub Desktop.

Select an option

Save rainrisa/11f16a2e84bd2726bd3d4808ef22cdc5 to your computer and use it in GitHub Desktop.
neovim fetch latest, for my linux mint
OWNER="neovim"
REPO="neovim-releases"
DEB_URL=$(curl -s "https://api.github.com/repos/$OWNER/$REPO/releases/latest" | \
jq -r '.assets[] | select(.name | endswith(".deb")) | .browser_download_url')
echo "Downloading: $DEB_URL"
OWNER="neovim"
REPO="neovim-releases"
LATEST_RELEASE=$(curl -s "https://api.github.com/repos/$OWNER/$REPO/releases/latest" | jq -r .tag_name)
echo "Latest release: $LATEST_RELEASE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment