Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Would love to know if there is a way to switch all my current Terminal.app tabs to a different profile on the fly.

The use-case being to change Terminal profile from a dark to a light theme, and vice versa, depending on a user's current mood/preference. This can be achieved manually by right clicking on a Tab header and choosing "Inspect tab", and then changing the theme for each tab.

The other option is to close down all the open tabs and reopen them with a new theme, again suboptimal IMHO.

Hope someone has a better way :)

share|improve this question
add comment

1 Answer

Create an AppleScript like this one, and call it something like TerminalNightMode:

tell application "Terminal"
    set current settings of tabs of windows to settings set "Pro"
end tell

You can replace the "Pro" setting with the setting name of your choice. When you run this AppleScript, it will change the settings for all the tabs in all windows. I recommend putting this script on the dock for easy access. Likewise, you can make another script for day mode.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.