#compdef -k complete-word \e/ local expl if [[ -n "$compconfig[history_sort]" ]]; then _description expl 'history word' else _description -V expl 'history word' fi compgen "$expl[@]" -Q -H 0 ''