From 51fa14cc63067bb0418d81c77a959869302aced8 Mon Sep 17 00:00:00 2001 From: syui Date: Wed, 27 Nov 2024 22:31:55 +0900 Subject: [PATCH] fix --- at.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/at.zsh b/at.zsh index 44d1754..f10906a 100755 --- a/at.zsh +++ b/at.zsh @@ -4,6 +4,7 @@ help=( at.zsh d handle at.zsh u at-uri at.zsh c at-uri -r + at.zsh docs ) host=( bsky.social @@ -20,6 +21,7 @@ lexicon=( function at-env(){ host=bsky.social at_uri=at://did:plc:4hqjfn7m6n5hno3doamuhgef/ai.syui.game.user/syui + docs_uri=https://docs.bsky.app/docs/api handle=yui.syui.ai did=`echo $at_uri|cut -d / -f 3` collection=`echo $at_uri|cut -d / -f 4` @@ -66,7 +68,7 @@ function at-collection-search(){ function at-docs(){ for i in $lexicon; do req=`echo $i|tr '.' '-'|sed 's/[A-Z]/-&/g'|tr '[A-Z]' '[a-z]'` - url=https://docs.bsky.app/docs/api/$req + url=$docs_uri/$req echo $url done }