about summary refs log tree commit diff
path: root/Completion/Builtins/_trap
blob: 36ab1f1a88f9644357fac93ce89c4ba79a677908 (plain) (blame)
1
2
3
4
5
6
7
#defcomp trap

if [[ CURRENT -eq 2 ]]; then
  compgen -c
else
  compgen -k signals
fi