This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: BASH prompt modification.


You can't just set you prompt... here's what I do:

${system} is the result of `uname -n`.
${wai} is the result of `whoami`.

alias cd 'cd \!*; set prompt="\n[`pwd`]\n(${system}:${wai} \!) "'
cd

--John



To: gnu-win32@cygnus.com ("'Cygnus GNU Programming Environment'") @ inet
cc:  (bcc: John Spadafora/Papyrus)
Subject: BASH prompt modification.

Unknown MIME transfer encoding 8bit will be ignored
Content-Transfer-Encoding: 8bit

 Dear friends,

 I want to modify the command line prompt of BASH so that it will show 
on-screen ( after complete execution of every command ) the current directory ( 
the output of pwd or the content of $PWD ). How on earth do I do this ? I have 
made endless efforts to find a solution but to no avail. Please help me...

+----------------------------------------------+
| Panos Platon Tsapralis,Software Engineer,    |
| M.I.S.Applications Manager - TeleStet,       |
+----------------------------------------------+
| E-mail Address   = pan@hol.gr,               |
| Home Address     = 3 Aishylou Str., 15234,   |
|                    Halandri, Athens,         |
|                    Attica, GREECE,           |
| Home Phone No.   = (00301)68.58.298,         |
| Bysiness Address = 60 Kifissias Ave., 15125, |
|                    Amaroussion, Athens,      |
|                    Attica, GREECE,           |
| Office Phone No. = (00301)61.86.013,         |
| Mobile Phone No. = (003093)23.90.13.         |
+----------------------------------------------+
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".




-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]