How could I pin a folder directly to a remote service?

Currently, I do:
ipfs add -r

Get the CID
ipfs pin remote add --service=nickname CID_GOES_HERE

Is there any way to specify the path/filename and upload it to remote storage in 1 line of code?

I don’t think so however bash exists.

ipfs pin remote add --service=nickname $(ipfs add -rQ YOUR_FILE_PATH/)


It seems to have worked as expected however I only have one other question:
When executing the command the file is sent to the remote pin service, however, the terminal is still locked. Is it possible to unlock the terminal as soon as the file has been uploaded?