Skip to content

Commit ab90520

Browse files
committed
Extract out the "Prompt" section from the commandline instructions
into an include. This will allow us to re-use it earlier, in the installation instructions (where attendees are often confused about how the prompt works)
1 parent 042d5a2 commit ab90520

File tree

2 files changed

+34
-31
lines changed

2 files changed

+34
-31
lines changed

en/intro_to_command_line/README.md

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -20,42 +20,13 @@ To start some experiments we need to open our command-line interface first.
2020

2121
{% include "/intro_to_command_line/open_instructions.md" %}
2222

23-
## Prompt
24-
2523
You now should see a white or black window that is waiting for your commands.
2624

27-
<!--sec data-title="Prompt: macOS and Linux" data-id="OSX_Linux_prompt" data-collapse=true ces-->
28-
29-
30-
If you're on Mac or Linux, you probably see a `$`, like this:
31-
32-
{% filename %}command-line{% endfilename %}
33-
```
34-
$
35-
```
36-
<!--endsec-->
37-
38-
<!--sec data-title="Prompt: Windows" data-id="windows_prompt2" data-collapse=true ces-->
39-
40-
41-
On Windows, you probably see a `>`, like this:
42-
43-
{% filename %}command-line{% endfilename %}
44-
```
45-
>
46-
```
47-
48-
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.
49-
50-
<!--endsec-->
51-
52-
Each command will be prepended by a `$` or `>` and one space, but you should not type it. Your computer will do it for you. :)
25+
### The command-line Prompt
5326

54-
> 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.
27+
{% include "/intro_to_command_line/prompt.md" %}
5528

56-
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.
5729

58-
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.
5930

6031
## Your first command (YAY!)
6132

en/intro_to_command_line/prompt.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--sec data-title="Prompt: macOS and Linux" data-id="OSX_Linux_prompt" data-collapse=true ces-->
2+
3+
4+
If you're on Mac or Linux, you probably see a `$`, like this:
5+
6+
{% filename %}command-line{% endfilename %}
7+
```
8+
$
9+
```
10+
<!--endsec-->
11+
12+
<!--sec data-title="Prompt: Windows" data-id="windows_prompt2" data-collapse=true ces-->
13+
14+
15+
On Windows, you probably see a `>`, like this:
16+
17+
{% filename %}command-line{% endfilename %}
18+
```
19+
>
20+
```
21+
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+
24+
<!--endsec-->
25+
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. :)
27+
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.
29+
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.
31+
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.

0 commit comments

Comments
 (0)