* Disable RPROMPT in Midnight Commander
@ 2013-08-14 14:58 Thorsten Kampe
2013-08-14 15:06 ` Victor Ananjevsky
2013-08-14 16:05 ` Dan Nelson
0 siblings, 2 replies; 4+ messages in thread
From: Thorsten Kampe @ 2013-08-14 14:58 UTC (permalink / raw)
To: zsh-users
Hi,
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?
Thorsten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Disable RPROMPT in Midnight Commander
2013-08-14 14:58 Disable RPROMPT in Midnight Commander Thorsten Kampe
@ 2013-08-14 15:06 ` Victor Ananjevsky
2013-08-14 16:05 ` Dan Nelson
1 sibling, 0 replies; 4+ messages in thread
From: Victor Ananjevsky @ 2013-08-14 15:06 UTC (permalink / raw)
To: zsh-users
В Wed, 14 Aug 2013 16:58:06 +0200
Thorsten Kampe <thorsten@thorstenkampe.de> писал:
> Hi,
>
> 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?
>
> Thorsten
>
>
or even better, if mc would handle his own prompt string, for example
from $MCPROMPT variable
--
Victor Ananjevsky <ananasik@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Disable RPROMPT in Midnight Commander
2013-08-14 14:58 Disable RPROMPT in Midnight Commander Thorsten Kampe
2013-08-14 15:06 ` Victor Ananjevsky
@ 2013-08-14 16:05 ` Dan Nelson
2013-08-14 17:38 ` Thorsten Kampe
1 sibling, 1 reply; 4+ messages in thread
From: Dan Nelson @ 2013-08-14 16:05 UTC (permalink / raw)
To: Thorsten Kampe; +Cc: zsh-users
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@allantgroup.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Disable RPROMPT in Midnight Commander
2013-08-14 16:05 ` Dan Nelson
@ 2013-08-14 17:38 ` Thorsten Kampe
0 siblings, 0 replies; 4+ messages in thread
From: Thorsten Kampe @ 2013-08-14 17:38 UTC (permalink / raw)
To: zsh-users
* 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-08-14 17:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-14 14:58 Disable RPROMPT in Midnight Commander Thorsten Kampe
2013-08-14 15:06 ` Victor Ananjevsky
2013-08-14 16:05 ` Dan Nelson
2013-08-14 17:38 ` Thorsten Kampe
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).