From: Johannes Sixt Date: Sun, 02 Sep 2007 10:18:24 GMT Subject: Re: [PATCH] Improve bash prompt to detect merge / rebase in progress Message-ID: <20070902101825.1938C576FA@dx.sixt.local> In-Reply-To: <200709020152.30070.robin.rosenberg@dewire.com> Robin Rosenberg wrote: > + if [ -d "$g/../.dotest" ] > + then > + ... > + else > + if [ -d "$g/.dotest-merge" ] > + then > + ... > + else > + if [ -f "$g/MERGE_HEAD" ] > + then > + ... > + else > + ... > + fi > + fi > + fi You can use 'elif' to avoid the increasing indentation. -- Hannes