In article <
917b829c-96ae-4051...@googlegroups.com>,
astrodiens...@gmail.com wrote:
> I would like a shortcut for that, so that some staff can get this legacy
> terminal quickly
> a) a keyboard shortcut withing the terminal app
> There exists a shortcut for opening a new terminal window with default
> settings, command+N
> I had no success in trying to assign a shortcut to the menu item 'Legacy'
> nor to any of the other pre-existing terminal settings which are not default.
> Is there a way to assign a shortcut to the Legacy setting style?
You can create a shell script with this command (on a single line) :
osascript -e 'tell application "Terminal" to set current settings of
front window to settings set "Legacy"'
When called, it will apply the Legacy settings to the window.
> b) by writing a short script which starts a new terminal window with the
> Legacy setting.
From the "Settings" tab in the preferences, you can export your Legacy
configuration to a file (via the cogwheel popup menu at the bottom).
Opening this file in the Finder will create a new window with the
specified settings.
If you want to do it from a shell script, use :
open <path_to_legacy_settings_file>