unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: 50186@debbugs.gnu.org
Cc: orbitingflea@qq.com
Subject: bug#50186: Shell in emacs very annoying using zsh
Date: Fri, 27 Aug 2021 09:10:31 +0300	[thread overview]
Message-ID: <87y28na3dc.fsf@mail.linkov.net> (raw)
In-Reply-To: <tencent_943EBC6B4902775CA597FB380051C88C100A@qq.com> ("orbitingflea@qq.com"'s message of "Thu, 26 Aug 2021 16:47:57 +0800")

> You can see there are multi-line "leading info" (sorry for my poor English,
> I mean the characters on the left of the cursor before you enter a command
> in the shell, showing the username and the current directory; I don't know
> what it is called in English), but in bash there is only one line instead.
> I guess this is the key of the problem.

This is called "prompt", and you can change such multi-line prompt in zsh

  PROMPT=$'%~\n%# '

simply by removing \n.  Then the prompt will stay on one line.

In bash there are different shell variable names for prompt,
for example, PS1='\w\n$ ' where you can remove \n too.





  parent reply	other threads:[~2021-08-27  6:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-24  2:28 bug#50186: Shell in emacs very annoying using zsh ���η� via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-25 11:49 ` Lars Ingebrigtsen
2021-08-26  8:47 ` bug#50186: More details about " ���η� via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-26 14:54   ` Michael Heerdegen
2021-08-27  6:10   ` Juri Linkov [this message]
2021-08-27 10:58     ` Michael Heerdegen
     [not found]       ` <tencent_3B44F9B2833A45DF08C3C394D62CB0C29506@qq.com>
2021-08-27 14:54         ` Michael Heerdegen
2021-08-27 16:57       ` Juri Linkov
2021-08-28  9:26         ` ���η� via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-28 16:28           ` Eduardo Ochs
2021-08-29  2:16             ` 周任飞 via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-27  7:01 ` bug#50186: Multi-line prompt is the reason ���η� via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y28na3dc.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=50186@debbugs.gnu.org \
    --cc=orbitingflea@qq.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).