fix
This commit is contained in:
parent
e3faeeb975
commit
51fa14cc63
4
at.zsh
4
at.zsh
@ -4,6 +4,7 @@ help=(
|
|||||||
at.zsh d handle
|
at.zsh d handle
|
||||||
at.zsh u at-uri
|
at.zsh u at-uri
|
||||||
at.zsh c at-uri -r
|
at.zsh c at-uri -r
|
||||||
|
at.zsh docs
|
||||||
)
|
)
|
||||||
host=(
|
host=(
|
||||||
bsky.social
|
bsky.social
|
||||||
@ -20,6 +21,7 @@ lexicon=(
|
|||||||
function at-env(){
|
function at-env(){
|
||||||
host=bsky.social
|
host=bsky.social
|
||||||
at_uri=at://did:plc:4hqjfn7m6n5hno3doamuhgef/ai.syui.game.user/syui
|
at_uri=at://did:plc:4hqjfn7m6n5hno3doamuhgef/ai.syui.game.user/syui
|
||||||
|
docs_uri=https://docs.bsky.app/docs/api
|
||||||
handle=yui.syui.ai
|
handle=yui.syui.ai
|
||||||
did=`echo $at_uri|cut -d / -f 3`
|
did=`echo $at_uri|cut -d / -f 3`
|
||||||
collection=`echo $at_uri|cut -d / -f 4`
|
collection=`echo $at_uri|cut -d / -f 4`
|
||||||
@ -66,7 +68,7 @@ function at-collection-search(){
|
|||||||
function at-docs(){
|
function at-docs(){
|
||||||
for i in $lexicon; do
|
for i in $lexicon; do
|
||||||
req=`echo $i|tr '.' '-'|sed 's/[A-Z]/-&/g'|tr '[A-Z]' '[a-z]'`
|
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
|
echo $url
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user