ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mhz@alt-linux.org>
To: mandrake-russian@altlinux.ru
Cc: Alexey Voinov <voins@voins.program.ru>
Subject: [mdk-re] Re: syntax hl in shell would rock!!
Date: Tue Oct 30 11:08:18 2001
Message-ID: <20011030111320.A25160@localhost.localdomain> (raw)
In-Reply-To: <20011028101855.A10737@voins.local>

Hello Alexey,

On Sun, Oct 28, 2001 at 10:18:55AM +0300, Alexey Voinov wrote:
>
> zsh - это WoW! :)
> Умеет всё, что делает bash, умеет добивать по TABу не только имена файлов
> (например параметры у известных утилит или имена установленых пакетов у
> RPM, названия man-страниц, это всё, конечно, настраивается)
> 
> Может иммитировать (не идеально, конечно) csh, ksh, bash (это всё на
> любителей)
> 
> Автокоррекция комманд и имён файлов (спорная фишка, но иногда очень
> полезно)
> 
> Наверняка мало кто пользуется Alt-*  в bash (не со всех терминалов
> работает)  В zsh эта возможноть доведена до ума. Пишм в коммандной строке
> шаблон, например *.html нажимаем TAB  и в комаандную строку помещаются все
> файлы подходящие под этот шаблон.

Все это хорошо, только когда есть undo. Если сверхинтеллектуальный TAB
делает не то, чего вы хотели, и после этого приходится долго стирать
или начинать заново -- интеллектуальность идет лесом. Лучше все-таки
развесить эти плюшки по менее очевидным комбинациям клавиш.

> Аналогично в коммандной строке умеет
> раскрывать имена переменных в их значения.

Это и bash умеет.

> Редактор коммандной строки пишет контекст редактирования для многострочных
> комманд. Наверняка многие случайно оставляли незакрытый ' в коммандной
> сроке и долго не понимали что же bash от них хочет, особенно если строка
> длинная. zsh подсказывает что имеено он хочет. 

В bash это настраивается -- см. в документации о PS1 PS2 PS3 PS4

> Очень удобно из коммандной
> строки делать HERE-documents. 

В bash тоже удобно, разве что история ввода не распространяется на HERE.

-- 
Stay tuned,
  MhZ                                     JID: mookid@jabber.org
___________
Humans are communications junkies.  We just can't get enough.
		-- Alan Kay



      parent reply	other threads:[~2001-10-30 11:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-25 13:32 [mdk-re] BSD and Linux (not vs. ;) need advise Peter V. Saveliev
2001-10-25 14:01 ` cornet
2001-10-25 16:15   ` Re[2]: " Balamut
2001-10-26 12:07     ` Peter V. Saveliev
2001-10-26 13:11       ` Antonio
2001-10-26 13:38       ` bvg
2001-10-25 14:19 ` Yuri Ryazantsev
2001-10-25 14:33   ` [mdk-re] [JT] " cornet
2001-10-27 21:12     ` [mdk-re] syntax hl in shell would rock!! Michael Shigorin
2001-10-28  0:44       ` cornet
2001-10-28 10:18         ` Alexey Voinov
2001-10-28 19:49           ` cornet
2001-11-01 12:28             ` Michael Shigorin
2001-10-28 19:56           ` cornet
2001-10-30 11:08           ` Mikhail Zabaluev [this message]

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=20011030111320.A25160@localhost.localdomain \
    --to=mhz@alt-linux.org \
    --cc=mandrake-russian@altlinux.ru \
    --cc=voins@voins.program.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