ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Lebedev <linux@vlink.ru>
To: community@altlinux.ru
Cc: php-coder@altlinux.ru
Subject: Re: [Comm] zsh tips
Date: Tue, 28 Jun 2005 18:21:53 +0400
Message-ID: <20050628142153.GA12397@vgg.ru> (raw)
In-Reply-To: <18722130812.20050628180945@altlinux.ru>

On 28 Jun, php-coder wrote:
> 
> 
>     Здраствуйте!
> 
>     Узнал несколько новых, очень, на мой взгляд, интересных фишек в
>     настройке zsh и не удержался, решил рассказать о них всем ;)
>     Также, насколько мне известно, в РУнете почти нет статей этой
>     тематики -- кроме тех, что принадлежат перу господина Федорчука я
>     лично ни одной не встречал.
> 
>     Поэтому и решил поделиться тем, что сам знаю (хотя это конечно же
>     не всё -- лишь самое главное).
> 
>     Статья (хотя это звучит несколько громко) располагается здесь:
>     http://www.freesource.info/wiki/Altlinux/shell/zsh
> 
>     Одной из целей также было желание узнать какие-нибудь новые
>     интересные возможности в zsh при этом не читая кучу манов на
>     английском. Поэтому прошу всех, кто знает что-нибудь интересное
>     дополнять начатый мной труд :)

Делюсь своим приглашением командной строки
PS1="$(print '%{\e[1;32m%}-=%{\e[0m%}
%{\e[1;31m%}(%{\e[0m%}%n%{\e[1;31m%})
%{\e[0m%}%{\e[1;32m%}=-%{\e[0m%}
%{\e[1;33m%}[%{\e[0m%}%m:%3~%{\e[1;33m%}]%{\e[0m%} ')"
Только перевод строчки убрать. Это типа одна строка. :)
C alias ls='ls --color=auto' cмотриться даже ничего.


>     Особенно хотел бы узнать о том как сделать, чтобы при вводе
>     mpg123, к примеру, при нажатии Tab отображались только файлы с
>     расширением mp3, а если xmms то и ogg, ну и т.д. в том же духе.
>     Знаю, что такое возможно :)

:)
Так ведь по ссылке на wiki
http://www-106.ibm.com/developerworks/library/l-z.html
compctl -g '*.mp3' + -g '*(-/)' mpg123




  reply	other threads:[~2005-06-28 14:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-28 11:09 php-coder
2005-06-28 14:21 ` Sergey Lebedev [this message]
2005-06-30  4:25   ` php-coder
2005-07-04 17:15   ` [Comm] " Michael Shigorin
2005-07-05  6:59     ` Maxim Tyurin

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=20050628142153.GA12397@vgg.ru \
    --to=linux@vlink.ru \
    --cc=community@altlinux.ru \
    --cc=php-coder@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