diff --git a/base/.config/profile/profile.d/base.sh b/base/.config/profile/profile.d/base.sh index 898a4ff..842e4ba 100644 --- a/base/.config/profile/profile.d/base.sh +++ b/base/.config/profile/profile.d/base.sh @@ -58,3 +58,10 @@ yaml_to_json () ( echo "${ARG}" | dasel --read yaml --write json | bat --language json fi ) + +github_releases () ( + USER=${1} + REPO=${2} + curl --silent --header "Accept: application/vnd.github.v3+json" \ + "https://api.github.com/repos/${USER}/${REPO}/releases" +)