commands.sh

mate

macos

General-purpose text editor for macOS.

More info →

Options (3)

-t, --typeboolean

Specify the filetype of a file

Example: mate {{[-t|--type]}} {{filetype}} {{path/to/file}}
-w, --waitboolean

Open and wait until finished editing a specific file

Example: mate {{[-w|--wait]}} {{path/to/file}}
-l, --lineboolean

Open a file with the cursor at a specific line and column

Example: mate {{[-l|--line]}} {{line_number}}:{{column_number}} {{path/to/file}}

Examples (5)

Start TextMate

Open specific files

mate path/to/file1 path/to/file2 ...

Specify the filetype of a file

mate [-t|--type] filetype path/to/file

Open and wait until finished editing a specific file

mate [-w|--wait] path/to/file

Open a file with the cursor at a specific line and column

mate [-l|--line] line_number:column_number path/to/file
made by @shridhargupta | data from tldr-pages