BASH prompt modification.
John Spadafora/Papyrus
John_Spadafora/Papyrus.PAPYRUS@papy.com
Tue Jul 22 09:06:00 GMT 1997
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".
More information about the Cygwin
mailing list