Sign in to follow this  
akira32

How do I set promt format

Recommended Posts

akira32    112
I use the cygwin's bash. My default prompt is $. How do I change the prompt as current directory with my user name? default $ I want $/home/user:myname:

Share this post


Link to post
Share on other sites
Null and Void    1088
You need to set the environment variable PS1 to "$\w:\u: ". You can do this temporarily by writing "export PS1='$\w:\u: '" in the shell and hitting return. Cygwin should have a bash.bashrc file somewhere or a user local ~/.bashrc where you can replace the PS1 setting more permanently.

Share this post


Link to post
Share on other sites
Sign in to follow this