Auto-complete command line arguments

前端 未结 3 781
感动是毒
感动是毒 2020-12-04 15:49

In bash, executables such as mplayer and imagemagick\'s \"convert\" have a cool auto-complete functionality on their command line arguments. For instance, if I type

3条回答
  •  星月不相逢
    2020-12-04 16:08

    This is an example of BASH's smart completion. A basic description is here, a guide to writing your own extensions is here and another (Debian-based) guide is here. And here's a fuller featured introduction to the complete command (the command that facilitates this behaviour).

提交回复
热议问题