X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:from:date:message-id:subject:to :content-type:content-transfer-encoding:x-gm-message-state; bh=rryjWb9KKKcJPErodL0RM9D7GKPqfv4HwgUPbpcuP5k=; b=YoQ4dASiwtYDQSHNk39cXULXlYwDHgAuBznceSK6DpgqyQtx8x2gimeYf0pqgowYPP kEX+NpU1OjcpCsgEwYciRwab7QIjMHEEGewVcYOTTw7TpKm8ibZXQ/otN2lUsBF34taD wn/o3o8ScJOZGqXqCBvDwAa/6gQ24lJGwPlaxeQ07jYhaDUyFEl6KjeRuOiWDWqvnA0C ycZatASSlkT6kiv1Vc44Yx35GrdQJdiTyuS62qPLUDEpgsuaYPnmze7edrOf43Btm8la qistyy/knvMkascs/tsMWTZ8SwXFzQW2370P9bNkLdxj8G2w3Fd22vOiAwXEVDTiXVrV LNig== MIME-Version: 1.0 From: David Caldwell Date: Mon, 26 Mar 2012 16:40:31 +0100 Message-ID: Subject: Proposed change to base-files /etc/bash.bashrc: see whether PS1 has already been set To: cygwin Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnZmca6PhP9TqawP7EOcP8vAG45Z5YQDNErVk4Rrkr2W7UGQcOeZ7Lw/Ek8c86zMhwSDpEA Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q2QFfHhu017970 I can't figure out where the CVS is for base-files, but I wanted to propose that the file: /etc/bash.bashrc ... be altered to test whether the PS1 variable has already been set before setting it to the default. I set mine in a file in the /etc/profile.d directory, but with the standard Cygwin installation, this value is overwritten unless I modify each user's local setup or alter the system-wide file. It would be harmless to ignore already-set values in this situation. I could obviously generate a patch as necessary if I knew where the repository was, but it's a one-liner, basically: if [ -z "$PS1" ]; then         PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' fi -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple