Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Some updates for document #89

Merged
merged 4 commits into from
May 6, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ sshcode [email protected]
You can specify a remote directory as the second argument:

```bash
sshcode [email protected] ~/projects/sourcegraph
sshcode [email protected] "~/projects/sourcegraph"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be quoted on all OSes, thank you.

```

## Extensions & Settings Sync
Expand Down Expand Up @@ -86,3 +86,18 @@ export VSCODE_EXTENSIONS_DIR="$HOME/.vscode-insiders/extensions"
By default, VS Code changes on the remote server won't be synced back
when the connection closes. To synchronize back to local when the connection ends,
pass the `-b` flag.


### Auto open in browser trouble shooting

sshcode detects if you're under GUI mode via checking environment variable `DISPLAY`.
If `DISPLAY` is not empty, then it will try to open romote vscode url in browser app mode.

But the `DISPLAY` environment variable will only be set with X-Window installed.

For OS doesn't have X-Window installed (e.g.: MacOS),
export following environment variable for enabling auto open in browser feature.

```bash
export DISPLAY=":0"
```