From 0fccfb276cd702a60d2eebef64b0597c9d673636 Mon Sep 17 00:00:00 2001 From: Harry Date: Sat, 20 Sep 2025 12:20:32 +0100 Subject: [PATCH 1/4] Update prompt section to reflect that zsh on mac now defaults to % --- en/intro_to_command_line/prompt.md | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/en/intro_to_command_line/prompt.md b/en/intro_to_command_line/prompt.md index 8c0c2ca7aac..6a4424e7185 100644 --- a/en/intro_to_command_line/prompt.md +++ b/en/intro_to_command_line/prompt.md @@ -1,31 +1,45 @@ - + + +On Windows, you probably see a `>`, like this: + +{% filename %}command-line{% endfilename %} +``` +> +``` + -If you're on Mac or Linux, you probably see a `$`, like this: + +If you're on Mac, you probably see a `%`, like this: {% filename %}command-line{% endfilename %} ``` -$ +% ``` - + -On Windows, you probably see a `>`, like this: +If you're on Linux, you probably see a `$`, like this: {% filename %}command-line{% endfilename %} ``` -> +$ ``` + 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. -Each command will be prepended by a `$` or `>` and one space, but you should not type it. Your computer will do it for you. :) +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. :) -> 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. +> Just a small note: in your case there may be something like +> `C:\Users\ola>` +> or `Olas-MacBook-Air %` +> or `ola@mylaptop:$` +> before the prompt sign, and this is 100% OK. 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. From 49bde5e6eb89dcce28f0a998132d6397bd4e6173 Mon Sep 17 00:00:00 2001 From: Harry Percival Date: Sat, 18 Jul 2026 09:05:59 +0100 Subject: [PATCH 2/4] Update en/intro_to_command_line/prompt.md Co-authored-by: Raphael Das Gupta --- en/intro_to_command_line/prompt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/intro_to_command_line/prompt.md b/en/intro_to_command_line/prompt.md index 6a4424e7185..dbb730d150c 100644 --- a/en/intro_to_command_line/prompt.md +++ b/en/intro_to_command_line/prompt.md @@ -41,6 +41,6 @@ Each command will be prepended by a `$` or `>` or `%` and one space, but you sho > or `ola@mylaptop:$` > before the prompt sign, and this is 100% OK. -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. +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. 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. From 2d4ee8104041fe1a21b1d4267134bdf8cf62ce6a Mon Sep 17 00:00:00 2001 From: Harry Date: Sat, 18 Jul 2026 09:23:36 +0100 Subject: [PATCH 3/4] remove reference to pythonanywhere having a linux prompt. unnecessarily confusing at this stage --- en/intro_to_command_line/prompt.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/en/intro_to_command_line/prompt.md b/en/intro_to_command_line/prompt.md index dbb730d150c..c95715d5f59 100644 --- a/en/intro_to_command_line/prompt.md +++ b/en/intro_to_command_line/prompt.md @@ -27,9 +27,6 @@ If you're on Linux, you probably see a `$`, like this: ``` $ ``` - - -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. From e4ef3342920f90e40540bd4b8d74fd49d0fd9ac3 Mon Sep 17 00:00:00 2001 From: Harry Date: Sat, 18 Jul 2026 09:24:10 +0100 Subject: [PATCH 4/4] remove duplicate explanation of prompts in listings and add percent where needed --- en/intro_to_command_line/prompt.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/intro_to_command_line/prompt.md b/en/intro_to_command_line/prompt.md index c95715d5f59..d1098b1c7fb 100644 --- a/en/intro_to_command_line/prompt.md +++ b/en/intro_to_command_line/prompt.md @@ -30,7 +30,6 @@ $ -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. :) > Just a small note: in your case there may be something like > `C:\Users\ola>` @@ -40,4 +39,5 @@ Each command will be prepended by a `$` or `>` or `%` and one space, but you sho 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. -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. +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. +Ignore the left part and only type in the command, which starts after the prompt.