|
|
Dynamically change background colors in iTerm
Unfortunately, there are some unwanted behaviours with this, such as if you try to run su from Terminal with the script above, it will change the color of an iTerm.I'm not sure I understand what you're trying to say here. Isn't the point of the script to change the colour of an iTerm? None-the-less using exec in a script means the exec line will take over the shell running the script and any lines in the script after the exec statement will not be run. Since you do it in brackets it creates a subshell and then takes over from the subshell. The brackets and the exec are therefore superfluous. Maybe should look like this:
If the brackets and backgrounding are because apple talk is so slow then maybe:
The problem with this is that the two background tasks could conflict in peculiar ways like the order may be wrong.
Dynamically change background colors in iTerm
First, yes, I want to change the background color of the current iTerm when I su in an iTerm, but not when running Terminal (unfortunatley I'm not aware of a method to determine wether I'm doind this in an iTerm or a Terminal (except maybe sourcing a separate script from iTerms bookmarks-thingie). |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.11 seconds |
|