osx-shortcut

1.1.1 • Public • Published

osx-shortcut bin/sh

Add autocorrect text shortcuts, as in, when I type $a, its expanded to $b.

Tested on OS X 10.10 (Yosemite), might work earlier.

Uses undocumented features, meaning that this might break on new releases of OS X (but your shortcuts will not).

Install

npm

npm install osx-shortcut --global

Usage

Usage: shortcut [options] <replace> <with>

Options:

  -h, --help     output usage information
  -v, --version  output version

You can also pass CSV on stdin(4).

Examples:

  $ shortcut "omw" "on my way"
  $ shortcut <<< "omw,on my way"

See also: man 1 shortcut

Go to System Preferences > Keyboard > Text to see your shortcuts.

License

MIT © Titus Wormer

Package Sidebar

Install

npm i osx-shortcut

Weekly Downloads

5

Version

1.1.1

License

MIT

Unpacked Size

5.36 kB

Total Files

5

Last publish

Collaborators

  • wooorm