How to make the prompt in the Command Prompt look like the Linux bash prompt
Example
Here is an example of how the Linux bash in Ubuntu looks like:
Tutorial
There is a feature in Command Prompt called the
prompt
command. It lets you change your prompt for example I could type
prompt hello
it would change my prompt to hello:
When I type
prompt
it goes back to normal!
![](https://res.cloudinary.com/practicaldev/image/fetch/s--JbETUwxU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/dAAyhEq.png)
When I type
prompt /?
it gives me the list of the variables.
![](https://res.cloudinary.com/practicaldev/image/fetch/s--f_Y3wncr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/nku0F98.png)
Here is the full solution:
If you use the prompt command it will reset when you relaunch the Command Prompt so the solution is to make a registry tweak. NOTE: I am not responsible if you mess up your windows install!!! The easy way to do this is by running this file it has some text in it that when double-clicked will make the registry edits for you! If you are interested in how it works here is the file contents:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor]
"Autorun"="prompt $V $P $_$$$S"
It basically works by running
prompt $V $P $_$$$S
every time you start Command Prompt. When you finish downloading the file open it and you are done!
Top comments (0)