mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 13:42:32 +00:00
30 lines
589 B
Plaintext
30 lines
589 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, windows]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# prompt
|
|
|
|
> Change the default DOS style prompt in a command window.
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/prompt>.
|
|
|
|
- Reset the prompt to the default setting:
|
|
|
|
`prompt`
|
|
|
|
- Set a specific prompt:
|
|
|
|
`prompt {{prompt}}`
|
|
|
|
- Change the prompt to show the current date first:
|
|
|
|
`prompt $D $P$G`
|
|
|
|
- Change the prompt to show the current time first:
|
|
|
|
`prompt $T $P$G`
|
|
|
|
- Change the prompt by adding a specific text first:
|
|
|
|
`prompt {{text}} $P$G`
|