I subscribe to a Windows oriented newsletter , just to see whats up in the Windows world. The following section talks about customising the command prompt in Windows. It may well bring a wry smirk amongst you more seasoned Linux users.
In the bash command prompt all you need to type is
PS1="mylaptop>"
or something more complicated.
Plus you dont need to restart your machine to see the changes.
***************************************************************************************
Customising the Command Prompt
The Windows Command Prompt usually just consists of: C:\>
However, there are lots of special codes that you can use to customise
the prompt in Windows Me/2000/XP by following these steps:
1. Click Start > Run.
2. Type: regedit and press [Enter].
3. Go to the key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
\SessionManager\Environment.
4. In the right pane, edit the value Prompt (or if it isn't there, add a
new value of the type String and call it Prompt). The default value
is $P$G, which produces the C:\> Any of the following can be used in
combination:
$T - Current time
$V - Windows XP version number
%COMPUTERNAME% - Local computer name
$H - Backspace (erases previous character)
$L - < (less-than sign)
$N - Current drive
$P - Current drive and path
$Q - = (equal sign)
$S - (space)
$_ - Carriage return and linefeed
$A - & (Ampersand)
$B - | (pipe)
$C - ( (Left parenthesis)
$D - Current date
$E - Escape code (ASCII code 27)
$F - ) (Right parenthesis)
$G - > (greater-than sign)
$$ - $ (dollar sign)
5. Restart Windows to see the change.
Saturday, May 07, 2005
Windows - change prompt and reboot your PC
Posted by chunkybacon at 10:25 am