Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is here a way to changing the profile from the command line?

Here is already couple of questions about changing colors, but I need change the whole profile from the "Basic" (what is my default) to "Homebrew" or "Pro" from the shell script.

Looking for only clean command-line solution (e.g. without clicks, global shotcuts etc.), so probably with osascript. Need it because want change the behavior when ssh-ing into another computer, e.g. font-size, encoding, colors, emulation - the whole profile - not only colors.

Like something next:

some_commands_here to change the CURRENT terminal profile into another

And no, I don't want use iTerm2. :)

Ps: ok, as the last resort, shortcuts are acceptable, but no clicks. :) :)

share|improve this question
up vote 5 down vote accepted
$function setTerm() { PROFILE=${1}; echo "tell app \"Terminal\" to set current settings of first window to settings set \"${PROFILE}\""|osascript; };


When you connect to a remote computer using ssh, the settings will set according to the remote bash profile. Therefore you need to define the preferred settings on the remote machine first.

share|improve this answer
remote bash profile is OK. I want change the profile (from 'Basic' for example to 'Homebrew') before run my ssh command. And remote .bash_* does not set my local terminal settings. (Or, if yes, can you provide an example - how?) – jm666 May 30 '11 at 14:15
Hi @jm666, see whether the…) could help you with that. – karmatic May 30 '11 at 14:24
Man - COOL - This is what i exactly want. Thanks. :) Can you pls add the link into the body of your answer? – jm666 May 30 '11 at 14:28

Your Answer


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.