···11-import {runAppleScript} from 'run-applescript';
11+import { runAppleScript } from "run-applescript";
2233/**
44 * @param {string} profile
55 * @return {Promise<void>}
66 */
77export async function setTerminalProfile(profile) {
88- await runAppleScript(`tell application "Terminal"
88+ await runAppleScript(`tell application "Terminal"
99 set current settings of tabs of windows to settings set "${profile}"
1010end tell`);
1111}
1212+1313+export async function setTerminalDefaultProfile(profile) {
1414+ await runAppleScript(`tell application "Terminal"
1515+ set default settings to settings set "${profile}"
1616+end tell`);
1717+}
+9-1
readme.md
···1111## Usage
12121313```javascript
1414-import { setTerminalProfile } from "terminal-profile";
1414+import {
1515+ setTerminalProfile,
1616+ setTerminalDefaultProfile,
1717+} from "terminal-profile";
15181619await setTerminalProfile("One Dark");
2020+await setTerminalDefaultProfile("gruvbox-dark");
1721```
18221923## API
···2125### `setTerminalProfile(profile)`
22262327Update all of Terminal’s windows and tabs to the `profile` profile.
2828+2929+### `setTerminalProfile(profile)`
3030+3131+Update Terminal to use the `profile` by default.
24322533## Acknowledgements
2634