1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 05:53:52 +01:00
zsh/Completion/Core/_message

21 lines
410 B
Plaintext
Raw Normal View History

1999-08-19 13:18:10 +02:00
#autoload
local format raw
1999-08-19 13:18:10 +02:00
_tags messages || return 1
1999-08-19 13:18:10 +02:00
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]}"
compadd -x "$format"
_comp_mesg=yes
1999-08-19 13:18:10 +02:00
fi