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

local expl

if [[ CURRENT -eq 2 ]]; then
  compset -q
  _normal
else
  _tags any:argument signals || return 1

  _description expl signal
  compadd "$expl[@]" - "$signals[@]"
fi