Skip to content

Commit 053d0a1

Browse files
committed
Update prompt section to reflect that zsh on mac now defaults to %
1 parent 2cf2dc0 commit 053d0a1

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

en/intro_to_command_line/prompt.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,45 @@
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
```
30+
<!--endsec-->
2131

2232
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.
2333

2434
<!--endsec-->
2535

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. :)
36+
Each command will be prepended by a `$` or `>` or `%` and one space, but you should not type it. Your computer will do it for you. :)
2737

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.
38+
> Just a small note: in your case there may be something like
39+
> `C:\Users\ola>`
40+
> or `Olas-MacBook-Air %`
41+
> or `ola@mylaptop:$`
42+
> before the prompt sign, and this is 100% OK.
2943
3044
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.
3145

0 commit comments

Comments
 (0)