From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1057 invoked by alias); 14 Aug 2013 17:39:29 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17927 Received: (qmail 131 invoked from network); 14 Aug 2013 17:39:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.3 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Thorsten Kampe Subject: Re: Disable RPROMPT in Midnight Commander Date: Wed, 14 Aug 2013 19:38:58 +0200 Message-ID: References: <20130814160516.GI93586@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p579b28cf.dip0.t-ipconnect.de User-Agent: MicroPlanet-Gravity/3.0.4 * Dan Nelson (Wed, 14 Aug 2013 11:05:16 -0500) > In the last episode (Aug 14), Thorsten Kampe said: > > Midnight Commander shows the right hand prompt directly after the standard > > prompt (like in "user@host% /etc"). Is there a way to disable RPROMPT > > just for Midnight Commander? > > I use this in the zshrc where I set the prompt: > > if [[ $+MC_SID = 1 ]] ; then > # inside Midnight Commander? Just give us a basic prompt > PROMPT=">%(#/#/) " > RPROMPT="" > fi MC_SID does not seem to exist under Cygwin, so I'll give MC_TMPDIR a try... Thorsten