From: Michael Shigorin <mike@osdn.org.ua> To: smoke-room@lists.altlinux.org Subject: [room] Fwd: Re: Особенности Zsh Date: Sun, 13 Oct 2013 19:37:27 +0300 Message-ID: <20131013163727.GA28512@osdn.org.ua> (raw) ----- Forwarded message from Artem Chuprina <ran/ran.pp.ru> ----- Date: Mon, 07 Oct 2013 13:01:16 +0400 From: Artem Chuprina <ran/ran.pp.ru> To: debian-russian/lists.debian.org Subject: Re: Особенности Zsh Артём Н. -> debian-russian/lists.debian.org / Sun, 06 Oct 2013 12:33:32 +0400: АН> 1. Узнать у людей её использующих, какие особенности (по сравнению с Bash) АН> наиболее удобны, полезны и часто ими используемы. TAB-дополнение по всему пути (ls /u/s/e/23<TAB>). Часто бывает полезно, когда надо добраться до файла, а в пути много шагов, и на многих из них нужно много набирать, чтобы обеспечить уникальность. Когда я переходил с bash на zsh (тому больше 10 лет) он еще кучу настроек умел на тему дополнения, которых не было у bash. Сейчас, возможно, они у bash уже есть. ** в шаблоне. Особенно - в комплекте с TAB, которое в данном случае будет уже не дополнением, а раскрытием шаблона. Опять же, не знаю, может, bash уже и научился. for f in *; do echo ../orig/${f/-r./.}; done (часть реальной командной строки, из history) и прочие преобразования со значениями переменных. Они у zsh богаче, чем у bash. Настройки обращения с history (оставление в истории только самого последнего из одинаковых, что часто сильно сокращает перебор, умение делить историю между несколькими экземплярами запущенных шеллов). Опять же, не знаю, как с этим у bash сегодня. help (как правило, man) по Esc-h, без стирания набранной части команды (в смысле, по выходу из man ты получаешь набранную часть команды обратно в командную строку). /etc/zshenv и ~/.zshenv, выполняемые при _любом_ запуске шелла (у bash такого нет). -- To UNSUBSCRIBE, email to debian-russian-REQUEST/lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster/lists.debian.org Archive: http://lists.debian.org/8738od315v.fsf/wizzle.ran.pp.ru ----- End forwarded message ----- -- ---- WBR, Michael Shigorin / http://altlinux.org ------ http://opennet.ru / http://anna-news.info
next reply other threads:[~2013-10-13 16:37 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-10-13 16:37 Michael Shigorin [this message] 2013-12-15 16:41 ` Kharitonov A. Dmitry
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=20131013163727.GA28512@osdn.org.ua \ --to=mike@osdn.org.ua \ --cc=shigorin@gmail.com \ --cc=smoke-room@lists.altlinux.org \ /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
Культурный офтопик This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/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 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \ smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com public-inbox-index smoke-room Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.smoke-room AGPL code for this site: git clone https://public-inbox.org/public-inbox.git