Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Disable RPROMPT in Midnight Commander
* 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author