Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Disable RPROMPT in Midnight Commander
- X-seq: zsh-users 17926
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- Subject: Re: Disable RPROMPT in Midnight Commander
- Date: Wed, 14 Aug 2013 11:05:16 -0500
- Cc: zsh-users@xxxxxxx
- In-reply-to: <kug5tl$df0$1@ger.gmane.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <kug5tl$df0$1@ger.gmane.org>
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
--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author