1

When the patch command doesn't find the file to patch, it asks for a filename.

Is there any way to get this to use tab complete?

jasonwryan
  • 71,734
  • 34
  • 193
  • 226
joachim
  • 7,617
  • 4
  • 17
  • 8

1 Answers1

5

Try

rlwrap -c patch -i patch.diff

rlwrap tries do add readline functionality to commands that lack it. There exists a couple of alternatives to rlwrap. If you're a zsh user, you may also have a look at Using zsh's line editor to wrap around subprocesses and at /usr/share/zsh/functions/Misc/nslookup for an example of how to add the zsh line editor to a command.

Stéphane Chazelas
  • 522,931
  • 91
  • 1,010
  • 1,501