On Fri, 29.05.15 10:40, Eric Cook (l...@gmx.com) wrote: > using _wanted instead of calling compadd directly. this allows the user to > customize > possible matches. > > An example being, grouping units by type: > autoload -Uz compinit; compinit > zstyle ':completion:*' menu select > zstyle ':completion:*' group-name '' > zstyle ':completion:*' format 'Completing %d' > zstyle -e > ':completion:*:*:systemctl-(((re|)en|dis)able|(*re|)start|reload*):*' \ > tag-order 'local type; for type in service template target socket; > reply+=( systemd-units:-${type}:${type} ); reply=( "$reply > systemd-units:-misc:misc" )' > zstyle ':completion:*:systemd-units-template' ignored-patterns '^*@' > zstyle ':completion:*:systemd-units-target' ignored-patterns '^*.target' > zstyle ':completion:*:systemd-units-socket' ignored-patterns '^*.socket' > zstyle ':completion:*:systemd-units-service' ignored-patterns '^*.service' > zstyle ':completion:*:systemd-units-misc' ignored-patterns > '*(@|.(service|socket|target))'
For the sake of the archives. This was merged as: https://github.com/systemd/systemd/pull/5 Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel