-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update README.md #50
base: master
Are you sure you want to change the base?
Update README.md #50
Conversation
Fixed start.sh bug.
Ok, this is good. |
Can you merge this PR? Thank you |
Ill merge it once I had time to test it. You can freely change your script, as its not part of the Go compiled code. |
I see. Thank you. :) 👍 |
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.
If we sort the comments im ready to merge this.
Im a bit confused now tho, is /mnt/c
the path for WSL and /c
for Git Bash or the other way around?
@@ -54,7 +55,7 @@ add it to your $PATH. | |||
```none | |||
#!/bin/bash | |||
|
|||
export PATH="$PATH:/mnt/c/Program Files (x86)/VMware/VMware Workstation" | |||
export PATH="$PATH:/mnt/c/Program Files (x86)/VMware/VMware Workstation" |
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 seems to be causing a break in the codeblock. Could you verify?
Enter & Run `C:\Program Files\Docker Toolbox\start.sh` in `bash` window. | ||
|
||
2. Change `export PATH="$PATH:/mnt/c/Program Files (x86)/VMware/VMware Workstation"` to `export PATH="$PATH:/c/Program Files (x86)/VMware/VMware Workstation"` in `start.sh`. | ||
Find `Docker Quickstart Terminal` on the desktop and double-click to run(need installed `Git Bash`). |
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.
(requires
Git Bash
)
could be better there, wdyt?
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.
The better reason for WSL
is that it is more convenient and quicker.
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.
No, i meant change the text to
(requires
Git Bash
)
instead of
need installed
@@ -141,6 +142,22 @@ add it to your $PATH. | |||
|
|||
## Usage | |||
|
|||
Usage `WSL (Windows Subsystem for Linux)` can be perfect to run this scripts, otherwise you can only modify the script after using `Git Bash` to run. | |||
So you'd better install and use `WSL` to run scripts. |
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.
I think this section is not that clear, maybe we can rephrase?
WSL (Windows Subsystem for Linux)
is a perfect option to run this script otherwise, you can modify the scripts as outlined below to run with other
bashtools like
Git Bashor
MSYS2`
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.
We can write two script files for WSL (Windows Subsystem for Linux)
and Git Bash
, or try to write a script file that is compatible with both.
This is WSL
:
This is Git Bash
:
There are some differences between the two.
The differences I have known are: path problems.
In the WSL
: /mnt/c/xxxxx
.
In the Git Bash
: /c/xxxxx
.
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.
Yeah, I know both, the main difference for this is just the mount path, that is all. It might be better to script the detection of the environment than to have 2 scripts.
2. Change `export PATH="$PATH:/mnt/c/Program Files (x86)/VMware/VMware Workstation"` to `export PATH="$PATH:/c/Program Files (x86)/VMware/VMware Workstation"` in `start.sh`. | ||
Find `Docker Quickstart Terminal` on the desktop and double-click to run(need installed `Git Bash`). | ||
|
||
3. Change `export PATH="$PATH:/mnt/c/Program Files (x86)/VMware/VMware Workstation"` to `export PATH="$PATH:/c/Program Files (x86)/VMware/VMware Workstation"` in `C:\Program Files\Docker Toolbox\start.sh`. |
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.
Both for 2. and 3. could we break the export [...]
commands to multiple lines to make it more readable?
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.
I dont really see the difference between 2. and 3. could you explain?
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.
- Usage
WSL
:
Run directly using your script file. - Usage
Git Bash
:
After modifying the script file, runDocker Quickstart Terminal
on the desktop directly.
OR
After modifying the script file, runGit Bash
directly and EnterC:\Program Files\Docker Toolbox\start.sh
in theGit Bash
window.
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.
Okey
@@ -141,6 +142,22 @@ add it to your $PATH. | |||
|
|||
## Usage | |||
|
|||
Usage `WSL (Windows Subsystem for Linux)` can be perfect to run this scripts, otherwise you can only modify the script after using `Git Bash` to run. | |||
So you'd better install and use `WSL` to run scripts. |
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.
We can write two script files for WSL (Windows Subsystem for Linux)
and Git Bash
, or try to write a script file that is compatible with both.
This is WSL
:
This is Git Bash
:
There are some differences between the two.
The differences I have known are: path problems.
In the WSL
: /mnt/c/xxxxx
.
In the Git Bash
: /c/xxxxx
.
Enter & Run `C:\Program Files\Docker Toolbox\start.sh` in `bash` window. | ||
|
||
2. Change `export PATH="$PATH:/mnt/c/Program Files (x86)/VMware/VMware Workstation"` to `export PATH="$PATH:/c/Program Files (x86)/VMware/VMware Workstation"` in `start.sh`. | ||
Find `Docker Quickstart Terminal` on the desktop and double-click to run(need installed `Git Bash`). |
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.
The better reason for WSL
is that it is more convenient and quicker.
2. Change `export PATH="$PATH:/mnt/c/Program Files (x86)/VMware/VMware Workstation"` to `export PATH="$PATH:/c/Program Files (x86)/VMware/VMware Workstation"` in `start.sh`. | ||
Find `Docker Quickstart Terminal` on the desktop and double-click to run(need installed `Git Bash`). | ||
|
||
3. Change `export PATH="$PATH:/mnt/c/Program Files (x86)/VMware/VMware Workstation"` to `export PATH="$PATH:/c/Program Files (x86)/VMware/VMware Workstation"` in `C:\Program Files\Docker Toolbox\start.sh`. |
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.
- Usage
WSL
:
Run directly using your script file. - Usage
Git Bash
:
After modifying the script file, runDocker Quickstart Terminal
on the desktop directly.
OR
After modifying the script file, runGit Bash
directly and EnterC:\Program Files\Docker Toolbox\start.sh
in theGit Bash
window.
If you add the WSL as requirement it locks out anybody not in Windows 10. |
Fixed start.sh bug.