Thanks - I wrote --
bash - load script -- using postgresql - I load the hostnames into a table
then query the table based on the domain I wish to load. This works very
good but how to I add triggers and colors to that result?
PROFILEDIR='/Users/username/Library/Application
Support/iTerm2/DynamicProfiles'
echo '{' > $PROFILEDIR/new.json
echo \"Profiles\"': [' >> $PROFILEDIR/new.json
psql mysqldb -X -f iterm2_query.sql -q |sed 's/XXX/"/g' >>
$PROFILEDIR/new.json
echo ']' >> $PROFILEDIR/new.json
echo '}' >> $PROFILEDIR/new.json
Post by George Nachmanhttps://www.iterm2.com/documentation-dynamic-profiles.html
Post by Richard MitchellThe profiles are just a json text file. Given you are creating so many
at one time, I'm guessing you are only changing one or just a few things.
Writing a little shell script to use sed would be one way of modifying a
template profile to your desired profile. A profile can also inherit
settings from "Dynamic Profile Parent Name", which means the template only
needs to contain the values you want changed, plus the name of the parent
profile.
Post by Tatzlwurm EadsI often will need to add large group of hosts(profiles) to iterm2.
Outside of duplicate I don't see a good way to do this. Is there a feature
to add a new group of 100 profiles at a time?
--
You received this message because you are subscribed to the Google Groups
"iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.