about summary refs log tree commit diff
path: root/Completion/Builtins/_trap
blob: d6fc7b3888f6d295fc71f95eedc713605d778e54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#compdef trap

local expl

if [[ CURRENT -eq 2 ]]; then
  _description expl command
  compgen "$expl[@]" -c
else
  _description expl signal
  compgen "$expl[@]" -k signals
fi