This repository was archived by the owner on Jan 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 216
Some updates for document #89
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9b6c13b
working folder parameter MUST be quoted on some OS (like MacOS)
tokikanno 130c6eb
DISPLAY env variable will only be set with X-Window installed.
tokikanno 7188680
Merge branch 'master' of https://github.com/cdr/sshcode
tokikanno 6cc7101
Revert "DISPLAY env variable will only be set with X-Window installed."
tokikanno File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
``` | ||
|
||
## Extensions & Settings Sync | ||
|
@@ -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 | ||
tokikanno marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
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" | ||
``` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.