···55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7788+## [Unreleased](https://github.com/ptrkcsk/terminal-profile/compare/v1.1.0...HEAD)
99+1010+### Added
1111+1212+- [`setTerminalDefaultProfile()`](readme.md#setterminaldefaultprofile)
1313+814## [1.1.0](https://github.com/ptrkcsk/terminal-profile/compare/v1.0.3...v1.1.0) - 2022-12-03
9151016### Added
+10
index.js
···99 set current settings of tabs of windows to settings set "${profile}"
1010end tell`);
1111}
1212+1313+/**
1414+ * @param {string} profile
1515+ * @return {Promise<void>}
1616+ */
1717+export async function setTerminalDefaultProfile(profile) {
1818+ await runAppleScript(`tell application "Terminal"
1919+ set default settings to settings set "${profile}"
2020+end tell`);
2121+}
+18-1
readme.md
···1111## Usage
12121313```javascript
1414-import { setTerminalProfile } from "terminal-profile";
1414+import {
1515+ setTerminalDefaultProfile,
1616+ setTerminalProfile,
1717+} from "terminal-profile";
15181619await setTerminalProfile("One Dark");
2020+2121+await setTerminalDefaultProfile("gruvbox-dark");
1722```
18231924## API
···2530```
26312732Update all of Terminal’s windows and tabs to the `profile` profile
3333+3434+### `setTerminalDefaultProfile`
3535+3636+```typescript
3737+function setTerminalDefaultProfile(profile: string): Promise<void>;
3838+```
3939+4040+Update Terminal’s default profile to `profile`
4141+4242+## Acknowledgements
4343+4444+Thanks to [Jimmy Bosse](https://github.com/jbosse) for his [Stack Overflow answer](https://stackoverflow.com/a/66080297/4411309)
28452946## Related
3047