mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-05 23:11:11 +02:00
moved from Completion/Core/_message
This commit is contained in:
parent
5962d9ffdb
commit
b8fd517172
1 changed files with 20 additions and 0 deletions
20
Completion/Base/Core/_message
Normal file
20
Completion/Base/Core/_message
Normal file
|
@ -0,0 +1,20 @@
|
|||
#autoload
|
||||
|
||||
local format raw
|
||||
|
||||
_tags messages || return 1
|
||||
|
||||
if [[ "$1" = -r ]]; then
|
||||
raw=yes
|
||||
shift
|
||||
format="$1"
|
||||
else
|
||||
zstyle -s ":completion:${curcontext}:messages" format format ||
|
||||
zstyle -s ":completion:${curcontext}:descriptions" format format
|
||||
fi
|
||||
|
||||
if [[ -n "$format$raw" ]]; then
|
||||
[[ -z "$raw" ]] && zformat -f format "$format" "d:$1" "${(@)argv[2,-1]}"
|
||||
builtin compadd -x "$format"
|
||||
_comp_mesg=yes
|
||||
fi
|
Loading…
Reference in a new issue