This script lets you resize the active Terminal.app window from the CLI. If no values are specified it'll use the current profile's default size.
Set width and height:
$ resize 120 24Reset to the current profile's default size:
$ resize- Add
~/.local/bin/to your PATH. - Save
resize.jsto~/.local/bin/. - Make it executable:
chmod +x resize.js. - Create a symlink so you don't have to type .js:
ls -s resize.js resize