# completion for schema _rails_tables() { if [[ -n $words[2] ]]; then compadd `schema -l ${words[2]}` fi } compdef _rails_tables schema