ai/at
ai/at
1
0
This commit is contained in:
syui 2024-11-27 22:31:55 +09:00
parent e3faeeb975
commit 51fa14cc63
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

4
at.zsh
View File

@ -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
}