Skip to main content
Became Hot Network Question
added 4 characters in body
Source Link
WestCoastProjects
  • 6.3k
  • 15
  • 75
  • 119

Tab completion in bash for definition of bash function namesfunctions?

I have several functions in my ~/.bash_profile named pg_dump_dbname_envnamepg_dump_[dbname]_[envname] so I would like to type pg_dump and then hitenter

type pg_dump [tab]

(or some other command besides tabtype) for bash to prompt for those entriesshow the definitino of that function. Is this a builtin for osx that I am missing how to use or is there a third party to do this?

Tab completion in bash for bash function names?

I have several functions in my ~/.bash_profile named pg_dump_dbname_envname so I would like to type pg_dump and then hit tab for bash to prompt for those entries. Is this a builtin for osx that I am missing how to use or is there a third party to do this?

Tab completion in bash for definition of bash functions?

I have several functions in my ~/.bash_profile named pg_dump_[dbname]_[envname] so I would like to enter

type pg_dump [tab]

(or some other command besides type) for bash to show the definitino of that function. Is this a builtin for osx that I am missing how to use or is there a third party to do this?

Source Link
WestCoastProjects
  • 6.3k
  • 15
  • 75
  • 119

Tab completion in bash for bash function names?

I have several functions in my ~/.bash_profile named pg_dump_dbname_envname so I would like to type pg_dump and then hit tab for bash to prompt for those entries. Is this a builtin for osx that I am missing how to use or is there a third party to do this?