Skip to content

Commit 0c8021f

Browse files
authored
Merge pull request #1877 from hjwp/prompt-on-mac-is-dollar
Default Prompt on MacOS is now %, not $
2 parents 109bcca + e4ef334 commit 0c8021f

1 file changed

Lines changed: 23 additions & 12 deletions

File tree

en/intro_to_command_line/prompt.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,43 @@
1-
<!--sec data-title="Prompt: macOS and Linux" data-id="OSX_Linux_prompt" data-collapse=true ces-->
1+
<!--sec data-title="Prompt: Windows" data-id="windows_prompt2" data-collapse=true ces-->
2+
3+
On Windows, you probably see a `>`, like this:
4+
5+
{% filename %}command-line{% endfilename %}
6+
```
7+
>
8+
```
29

10+
<!--sec data-title="Prompt: MacOS" data-id="OSX_prompt" data-collapse=true ces-->
311

4-
If you're on Mac or Linux, you probably see a `$`, like this:
12+
13+
If you're on Mac, you probably see a `%`, like this:
514

615
{% filename %}command-line{% endfilename %}
716
```
8-
$
17+
%
918
```
1019
<!--endsec-->
1120

12-
<!--sec data-title="Prompt: Windows" data-id="windows_prompt2" data-collapse=true ces-->
21+
<!--sec data-title="Prompt: Linux" data-id="Linux_prompt" data-collapse=true ces-->
1322

1423

15-
On Windows, you probably see a `>`, like this:
24+
If you're on Linux, you probably see a `$`, like this:
1625

1726
{% filename %}command-line{% endfilename %}
1827
```
19-
>
28+
$
2029
```
2130

22-
Take a look at the Linux section just above now -- you'll see something more like that when you get to PythonAnywhere later in the tutorial.
23-
2431
<!--endsec-->
2532

26-
Each command will be prepended by a `$` or `>` and one space, but you should not type it. Your computer will do it for you. :)
2733

28-
> Just a small note: in your case there may be something like `C:\Users\ola>` or `Olas-MacBook-Air:~ ola$` before the prompt sign, and this is 100% OK.
34+
> Just a small note: in your case there may be something like
35+
> `C:\Users\ola>`
36+
> or `Olas-MacBook-Air %`
37+
> or `ola@mylaptop:$`
38+
> before the prompt sign, and this is 100% OK.
2939
30-
The part up to and including the `$` or the `>` is called the *command line prompt*, or *prompt* for short. It prompts you to input something there.
40+
The part up to and including the `$`, the `>` or the `%` is called the *command line prompt*, or *prompt* for short. It prompts you to input something there.
3141

32-
In the tutorial, when we want you to type in a command, we will include the `$` or `>`, and occasionally more to the left. Ignore the left part and only type in the command, which starts after the prompt.
42+
In the tutorial, when we want you to type in a command, we will include the prompt, `%` or `$` or `>`, and occasionally more, to the left.
43+
Ignore the left part and only type in the command, which starts after the prompt.

0 commit comments

Comments
 (0)