1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-17 22:31:12 +01:00
zsh/Completion/Builtins/_trap

12 lines
175 B
Text
Raw Normal View History

1999-04-15 20:25:40 +02:00
#compdef trap
1999-04-15 20:17:36 +02:00
1999-08-19 13:18:05 +02:00
local expl
1999-04-15 20:18:42 +02:00
if [[ CURRENT -eq 2 ]]; then
1999-08-19 13:18:05 +02:00
_description expl command
compgen "$expl[@]" -c
1999-04-15 20:17:36 +02:00
else
1999-08-19 13:18:05 +02:00
_description expl signal
compgen "$expl[@]" -k signals
1999-04-15 20:17:36 +02:00
fi