delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "Hannu E K Nevalainen \(garbage mail\)" <garbage_collector AT telia DOT com> |
To: | "ML CygWIN" <cygwin AT cygwin DOT com> |
Subject: | More informative bash prompt |
Date: | Mon, 25 Aug 2003 20:49:15 +0200 |
Message-ID: | <NGBBLLIAMFLGJEOAJCCEGEDJDDAA.garbage_collector@telia.com> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1165 |
Well, whether this is useful might be a question of preference. -- .profile -- # Make the prompt tell the last exit code among other things. export PS1='\[\033]0;\w\007\033[32m\]\u@\ h \[\033[33m\w\033[0m\] \s (P)PID=($PPID)$$, s=$?\n$ ' -- DO append the two last lines above (i.e. ...\h... ) s == exit status of last command/pipe/... Take it or leave it. ;-) /Hannu E K Nevalainen, B.Sc. EE Microcomputer systems - 59°16.37'N, 17°12.60'E --END OF MESSAGE-- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |