Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Disable RPROMPT in Midnight Commander



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