# Neocities In Rc Shell After reading [kaa](https://kaa.neocities.org)'s suggestion, I made a neocities client using plan9 rc. I named it 'n'. To use, you must set your api key and username. ## Usage Upload Files: n up file1 file2 ... Delete Files: n del file1 file2 ... List Files: n list Site Info: n info user1 user2 ... `````````````````````````````````````````````````````````````````` #!/usr/bin/env rc username = $NEOCITIES_USER key = $NEOCITIES_KEY api = 'https://'$username'@neocities.org/api/' # Definition fn curl { builtin curl -H 'Authorization: Bearer '$key $* } fn up { for(i in $*) curl -F $i'=@-' <$i $api^'upload' } fn del { for(i in $*) curl -d 'filenames[]='$i $api^'delete' } fn list { curl $api^'list' } fn info { curl $api ^ 'info?sitename='^$* } # main fn main { fp = '' switch($1) { case up del list info fp = $1 case * echo 'Upload Files: n up file1 file2 ...' echo 'Delete Files: n del file1 file2 ...' echo 'List Files: n list' echo 'Site Info: n info user1 user2 ...' exit } shift $fp $* } main $* ``````````````````````````````````````````````````````````````````