From 8bfca07760c944e3e7f4b222d5488572c73ea07e Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 15 Jul 2021 09:18:45 +1000 Subject: [PATCH] Update _dots to pull list of repos from Gitea I completely forgot I made the _dots completion function do this in the first place. Past Dani did some really cool stuff! Anyway, the dot repos now live on Gitea, so the completion function needs to fetch the list from there instead. It's not difficult, the API is very simple. --- config/zsh/functions/_dots | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/zsh/functions/_dots b/config/zsh/functions/_dots index 9658349..d5869bd 100644 --- a/config/zsh/functions/_dots +++ b/config/zsh/functions/_dots @@ -14,7 +14,7 @@ commands=( status:'check whether your packages have changes' ) if ! _retrieve_cache dots-repositories; then - repos=($(curl -s 'https://api.github.com/users/00dani/repos' | jq -r '.[].full_name | select(startswith("00dani/dot-")) | .[11:]')) + repos=($(curl -s -X GET "https://git.00dani.me/api/v1/orgs/dot/repos" -H "accept: application/json" | jq -r '.[].name')) _store_cache dots-repositories repos fi