1

In Linux I can set terminal shortcut like this:

stty intr ^i

But in OS X it doesn't work, I've tried this construction with no success:

stty brkint ^i      # why is this illegal option???

How to setup Terminal shortcut in OS X?

  • stty intr ^I or stty intr ^E both work in Sierra!? – klanomath Oct 2 '16 at 18:45
  • can you not just set an Alias? – OzzieSpin Oct 2 '16 at 20:17
2

The command:

stty intr ^i

works exactly the same way on MacOS X as on Linux. Please note here ^i are 2 characters and not a tab.

On the other hand, the command:

stty brkint ^i

replies:

stty: illegal option -- ^i

because brkint is a boolean option to stty and not one with any other following value, and because ^i considered alone is not a valid option to stty.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .