From: Maxim Tyurin <mrkooll@bungarus.info> To: community@altlinux.ru Subject: [Comm] zsh menu completion Date: Fri, 15 Dec 2006 15:36:56 +0200 Message-ID: <m3odq5ffgn.fsf@bungarus.tdr.pibhe.com> (raw) Hi! Что-то не могу победить настройку menu в автодополнении. Чего хочется: чтоб для kill выводило меню всегда, а в остальных случаях только если меньше 7 вариантов. Но не работает :( Точнее вызывает меню только если меньше 7 вариантов всегда. Где я ошибся? Вот настройки: autoload -U compinit compinit autoload -U history-search-end zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-forward-end history-search-end setopt histexpiredupsfirst histfindnodups histignoredups histnostore histverify setopt autocd bgnice correct nohup nonomatch setopt listpacked listtypes # Меню автодополнения zmodload zsh/complist setopt menucomplete # Выводить меню только если меньше 7 вариантов zstyle ':completion:*:default' menu no=7 select # Регистронезависимое автодополнение zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z} m:{а-я}={А-Я}' # Создаем кеш для автодополнения (для команд типа apt-get у которых большая база) zstyle :completion:* use-cache on zstyle :completion:* cache-path ~/tmp/.zsh_cache # Меняет список вариантов на список сделующих вариантов bindkey -M menuselect "/" accept-and-infer-next-history # Автодополнение для kill. По умолчанию используется просто ps... zstyle ':completion:*:processes' command 'ps xuf' zstyle ':completion:*:processes' sort false # Дальше набираем, например, kill <Tab> и пробелом отмечаем # процессы, которые хотим закилять ;-) zstyle ':completion:*:processes' menu yes=long-list select # То же самое для killall. Почему-то по умолчанию processes-names вызывает ps ho command для пользователя и ps xaho command для root. zstyle ':completion:*:processes-names' command 'ps xho command' # Добавим цвета в меню zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} -- With Best Regards, Maxim Tyurin JID: MrKooll@jabber.pibhe.com ___ / _ )__ _____ ___ ____ _______ _____ / _ / // / _ \/ _ `/ _ `/ __/ // (_-< /____/\_,_/_//_/\_, /\_,_/_/ \_,_/___/ /___/
next reply other threads:[~2006-12-15 13:36 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-12-15 13:36 Maxim Tyurin [this message] 2006-12-18 14:19 ` Fr. Br. George 2006-12-18 16:22 ` Maxim Tyurin 2006-12-18 17:22 ` 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=m3odq5ffgn.fsf@bungarus.tdr.pibhe.com \ --to=mrkooll@bungarus.info \ --cc=community@altlinux.ru \ --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