* [Comm] zsh & mc
@ 2003-11-11 18:58 DM
2003-11-17 3:10 ` Pavel N. Solovyov
0 siblings, 1 reply; 4+ messages in thread
From: DM @ 2003-11-11 18:58 UTC (permalink / raw)
To: community
Здравствуйте!
Продолжаю осваивать zsh.
При работе с mc из-под zsh в историю команд оболочки попадают в том
числе и те команды, которые выполняет mc (в частности, команды cd при
переходе из каталога в каталог). При работе mc из-под чистого bash
этого не наблюдается. Каким образом можно избежать засорения истории?
---------------------------------------
DM <dead underline m at list point ru>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] zsh & mc
2003-11-11 18:58 [Comm] zsh & mc DM
@ 2003-11-17 3:10 ` Pavel N. Solovyov
2003-11-17 21:30 ` DM
0 siblings, 1 reply; 4+ messages in thread
From: Pavel N. Solovyov @ 2003-11-17 3:10 UTC (permalink / raw)
To: community
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, то есть не отражать хотя бы хождения
> по каталогам?
Никак.
Успехов. Павел.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] zsh & mc
2003-11-17 3:10 ` Pavel N. Solovyov
@ 2003-11-17 21:30 ` DM
2003-11-18 20:36 ` maillist archives (was: [Comm] zsh & mc) Michael Shigorin
0 siblings, 1 reply; 4+ messages in thread
From: DM @ 2003-11-17 21:30 UTC (permalink / raw)
To: community
Здравствуйте, Pavel N. Solovyov!
Понедельник 17 Ноябрь 2003 06:10, Вы писали:
> > При работе с 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 последний параметр
> запрещает писать в историю команды начинающиеся с пробела
Вот он --- результат левизны архивов рассылки на www.altlinux.ru :-(
Если бы у кого-нибудь в ALT'e хватило времени взять рабочий mbox и
перегенерить архивы, я мог бы не спрашивать :-(
Спасибо. Насколько я понимаю, помогло. Причём только последний параметр,
остальные мне как-то не глянулись :-)
> Кроме того добавь
> bindkey "^[[7~" beginning-of-line
> bindkey "^[[8~" end-of-line
> чтоб Home и End работали
А эти бинды там по жизни имеются. Как выяснилось в результате недавнего
обсуждения, нужно ещё и:
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
для нормальной работы home и end в терминале KDE.
---------------------------------------
DM <dead underline m at list point ru>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-11-18 20:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-11 18:58 [Comm] zsh & mc DM
2003-11-17 3:10 ` Pavel N. Solovyov
2003-11-17 21:30 ` DM
2003-11-18 20:36 ` maillist archives (was: [Comm] zsh & mc) Michael Shigorin
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