about summary refs log tree commit diff
path: root/Completion/Builtins/_bindkey
blob: d3d019492fcab6d359b2fcb8859740ea9655ecbd (plain) (blame)
1
2
3
4
5
6
7
#defcomp bindkey

if [[ "$words[2]" = -*[DAN]* || "$words[CURRENT-1] = -*M ]]; then
  compgen -s '$(bindkey -l)'
else
  compgen -b
fi