https://github.com/patrik-csak/terminal-profile
Node.js library for managing macOS Terminal’s profile (aka theme)
https://github.com/patrik-csak/terminal-profile
macos-terminal nodejs terminal terminal-profile terminal-theme
Last synced: 25 days ago
JSON representation
Node.js library for managing macOS Terminal’s profile (aka theme)
- Host: GitHub
- URL: https://github.com/patrik-csak/terminal-profile
- Owner: patrik-csak
- License: mit
- Created: 2022-06-12T21:51:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-11T00:39:54.000Z (about 2 years ago)
- Last Synced: 2025-04-23T22:05:56.928Z (25 days ago)
- Topics: macos-terminal, nodejs, terminal, terminal-profile, terminal-theme
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/terminal-profile
- Size: 854 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license.txt
Awesome Lists containing this project
README
# `terminal-profile`
Node.js library for managing the macOS Terminal.app’s profile (aka theme)
## Install
```sh
npm install terminal-profile
```## API
### `setTerminalProfile()`
```typescript
function setTerminalProfile(profile: string): Promise;
```Update all of Terminal’s windows and tabs to the `profile` profile
```javascript
import { setTerminalProfile } from "terminal-profile";await setTerminalProfile("One Dark");
```### `setTerminalDefaultProfile()`
```typescript
function setTerminalDefaultProfile(profile: string): Promise;
```Update Terminal’s default profile to `profile`
```javascript
import { setTerminalDefaultProfile } from "terminal-profile";await setTerminalDefaultProfile("One Light");
```## Related
- [auto-terminal-profile](https://github.com/ptrkcsk/auto-terminal-profile) – Automatically switch macOS Terminal’s profile (theme) based on the system-wide dark / light appearance mode
## Acknowledgements
Thanks to [Jimmy Bosse](https://github.com/jbosse) for his [Stack Overflow answer](https://stackoverflow.com/a/66080297/4411309)