ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Pavel N. Solovyov" <pavel@stai.pssr.ru>
To: community@altlinux.ru
Subject: Re: [Comm] zsh & mc
Date: Mon, 17 Nov 2003 08:10:46 +0500
Message-ID: <20031117081046.5baa7d95.pavel@stai.pssr.ru> (raw)
In-Reply-To: <200311112158.02391.dead_m@list.ru>

On Tue, 11 Nov 2003 21:58:02 +0300
DM <dead_m@list.ru> wrote:

> Здравствуйте!
> 
> Продолжаю осваивать zsh.
> 
> При работе с mc из-под zsh в историю команд оболочки попадают в
> том числе и те команды, которые выполняет mc (в частности,
> команды cd при переходе из каталога в каталог). При работе mc
> из-под чистого bash этого не наблюдается. Каким образом можно
> избежать засорения истории?

В своё время мне дали такие советы:

[Comm] мусор в history в zsh
Maxim Tyurin community@altlinux.ru
Tue, 10 Jun 2003 10:42:00 +0300
    
В ~/.zshrc
setopt histexpiredupsfirst histfindnodups histignoredups
histnostore histverify histignorespace последний параметр
запрещает писать в историю команды начинающиеся с пробела

Кроме того добавь
bindkey "^[[7~" beginning-of-line
bindkey "^[[8~" end-of-line
чтоб Home и End работали

--
[Comm] мусор в history в zsh
Alexey I. Froloff community@altlinux.ru
Tue, 10 Jun 2003 14:05:36 +0400

* Pavel N.Solovyov <pavel@stai.pssr.ru> [030610 11:36]:
> Такая проблема: если в оболочке ZSH запустить MC, то в history
> мс записывает, как она, точнее я, ходил по каталогам, то есть
> хистори заполнена строчками такого типа: 
>  cd "`echo -e '\0057home\0057pavel'`"
>  cd "`echo -e '\0057home\0057pavel\0057Soft'`"
> В результате пользоваться history становится просто
> невозможно:-(
echo "setopt histignorespace" >> ~/.zshrc

Кстати, man zshoptions - там много интересного ;-)

> Не подскажет ли уважаемое сообщество, как попросить мс не
> мусорить в .bacsh_history, то есть не отражать хотя бы хождения
> по каталогам?
Никак.

Успехов. Павел.



  reply	other threads:[~2003-11-17  3:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-11 18:58 DM
2003-11-17  3:10 ` Pavel N. Solovyov [this message]
2003-11-17 21:30   ` DM
2003-11-18 20:36     ` maillist archives (was: [Comm] zsh & mc) Michael Shigorin

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

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

  git send-email \
    --in-reply-to=20031117081046.5baa7d95.pavel@stai.pssr.ru \
    --to=pavel@stai.pssr.ru \
    --cc=community@altlinux.ru \
    /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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git