LoginSignup
5
6

More than 5 years have passed since last update.

ver3にあげたらsshした時にbgcolorが変わらなくなった

Posted at

本番環境に繋いだ時に色を変えるのに参考にさせてました
http://qiita.com/k_kinukawa/items/3e5665325a4954e33019

ですがver3にあげたらエラーを出力して動作しなくなってしまいました

44:52: syntax error: end of line があるべきところですが identifier が見つかりました。 (-2741)

ver3のドキュメントを参考にするとterminalじゃなくてwindowになっていたので
こんな感じに修正した

tell application "iTerm2"
  tell the current window
    tell the current session
      set background color to {$(($R*65535/255)), $(($G*65535/255)), $(($B*65535/255))}
    end tell
  end tell
end tell

これで本番に繋ぐのも怖くない

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6