sshcode
sshcode copied to clipboard
Can't seem to open specific directory
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!
as a note, I'm using the -b flag to sync back so maybe it's affecting the way my command should be formatted ?
That cd error is probably the cause. What OS are you using (locally and on the remote server)?
I’m on MacOS Mojave locally while the remote server is running Ubuntu 18.04
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.
@thomasfaller bump