sshcode icon indicating copy to clipboard operation
sshcode copied to clipboard

Can't seem to open specific directory

Open thomasfaller opened this issue 6 years ago • 5 comments

Hey folks, So far it works wonder, the only thing is that I can't get to open a specific directory, not matter what format I use for the path I always end up in my home directory.

I tried:

sshcode [email protected] "/home/thomas/Dev/Project"
sshcode [email protected] "~/Dev/Project"

and finally I tried

sshcode [email protected] "${PWD}/Dev/Project"

but none of the above seems to get VS Code to open the dedicated directory. Is there something I'm missing or doing wrong ? In the info it logs while connecting (after launching sshcode) I can see an error saying bash: line 0: cd: too many arguments but I'm not sure that's related.

Anyway, I always end up in my home directory 😅

Any help would be great! Thanks!

thomasfaller avatar Jun 28 '19 12:06 thomasfaller

as a note, I'm using the -b flag to sync back so maybe it's affecting the way my command should be formatted ?

thomasfaller avatar Jun 28 '19 12:06 thomasfaller

That cd error is probably the cause. What OS are you using (locally and on the remote server)?

deansheather avatar Jun 29 '19 02:06 deansheather

I’m on MacOS Mojave locally while the remote server is running Ubuntu 18.04

thomasfaller avatar Jun 29 '19 08:06 thomasfaller

Could you try with the fix-start-command branch and see if that helps? Once you've cloned it, just run go build -o sshcode . and use ./sshcode instead of sshcode when testing it.

deansheather avatar Jun 30 '19 02:06 deansheather

@thomasfaller bump

deansheather avatar Jul 11 '19 03:07 deansheather