From: "Алексей Синицын" <asinitsinster@gmail.com>
To: "ALT Linux Community general discussions" <community@lists.altlinux.org>
Subject: Re: [Comm] I: zsh - show dirs first
Date: Thu, 10 Apr 2008 22:37:38 +0400
Message-ID: <a1b0b2150804101137s5ffd29eboc83949a2721c0ee8@mail.gmail.com> (raw)
In-Reply-To: <20080410132617.GD9384@hell.fortress>
10.04.08, Alexey I. Froloff<raorn@altlinux.ru> написал(а):
> Я его сделал!
>
> zstyle ':completion:*' file-patterns '*(-/):directories:directories *(^-/):files:files'
> zstyle ':completion:*:default' list-grouped true
>
> После чего имеет такой красивый скриншотег:
>
> raorn@centaurus:pts/9 /usr/libexec $ ls <Tab>
> ---- directories ----
> awk/ ConsoleKit/ dbus-1/
> evolution-data-server/ gcc/ gnupg/
> gvfs/ hal/ hasher-priv/
> PolicyKit/ postfix/ sudo/
> X11/ xscreensaver/
> ---- files ----
> ck-collect-session-info*
>
> P.S. mc ненужен.
>
А что здесь может быть не так? При таком конфиге не работает:
PROMPT="%T %n@%m %3~ %(!.#.$) "
zmodload zsh/complist
setopt menucomplete
setopt autocd
setopt CORRECT
SPROMPT="Ошибка! Вы хотели ввести %r вместо %R? ([Y]es/[N]o/[E]dit/[A]bort) "
zstyle ':completion:*' menu yes select
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*:processes' command 'ps -xuf'
zstyle ':completion:*:processes' sort false
zstyle ':completion:*:processes-names' command 'ps xho command'
zstyle ':completion:*' file-patterns '*(-/):directories:directories
*(^-/):files:files'
zstyle ':completion:*:default' list-grouped true
bindkey -M menuselect "^M" .accept-line
bindkey -M menuselect "/" accept-and-infer-next-history
bindkey -M menuselect "^H" undo
alias -s avi=mplayer
alias -s mpg=mplayer
22:34 al@wind ~ $ rpm -q zsh
zsh-4.3.4-alt3
next prev parent reply other threads:[~2008-04-10 18:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-10 13:26 Alexey I. Froloff
2008-04-10 13:45 ` Alexey Morsov
2008-04-10 13:47 ` Alexey I. Froloff
2008-04-10 18:37 ` Алексей Синицын [this message]
2008-04-10 20:10 ` Alexey I. Froloff
2008-04-10 22:16 ` Alexey I. Froloff
2008-04-11 15:42 ` Алексей Синицын
2008-04-12 16:55 ` Michael Shigorin
2008-04-10 19:03 ` Vitaly Ostanin
2008-04-12 7:46 ` Alexey I. Froloff
2008-04-12 16:45 ` Michael Shigorin
2008-04-12 17:05 ` Alexey I. Froloff
2008-04-13 15:40 ` Алексей Синицын
2008-04-13 19:36 ` Alexey I. Froloff
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=a1b0b2150804101137s5ffd29eboc83949a2721c0ee8@mail.gmail.com \
--to=asinitsinster@gmail.com \
--cc=community@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
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