delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <37E584CB.8CBE0AC0@ctam.com.au> |
Date: | Mon, 20 Sep 1999 10:50:19 +1000 |
From: | Brendan Simon <bsimon AT ctam DOT com DOT au> |
Reply-To: | bsimon AT ctam DOT com DOT au |
Organization: | CTAM Pty Ltd |
X-Mailer: | Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i586) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | Leonardo Pedrosa <lion AT sti DOT com DOT br> |
CC: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: How to set the prompt? |
References: | <3422B7D8 DOT A5CD0CE1 AT sti DOT com DOT br> |
Leonardo Pedrosa wrote: > Hello, I'm starting with the cygwin recently and cause my lack of > experience I have this basic/fool question. > When a I run Cygnus form Windows98 the prompt stay fixed at BASH.EXE > 2.02$ > How can I set it like the "prompt $p$g" command of MS-DOS ? > > Thank you. > Leonard > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com I have the following in my .bashrc file. export PS1="[\h:\w]$ " This sets the first prompt to the computers hostname followed by the working directory. All this is surrounded by square brackets and a dollar symbol. This is similar to the RedHat linux prompt. The "\h" means host and the "\w" means working directory. You need to get some bash documentation. "man bash" should do it if you have a linux machine or the documenation stuff installed for your cygwin environment. If your HOME variable is not set you will probably need to type "source .bashrc". Just try export PS1="[\w]$ " at the command prompt to test it. Brendan Simon. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |