Support for iTerm
It would be very nice if PostgresApp supported iTerm. If you don't want to have a Preference pane, you could just check for iTerm and use it if it's available.
I assume you mean that "Open psql" should open iTerm instead of Terminal? Sounds like a good idea. The latest Postgres.app beta has a preference window, so I should be able to integrate that nicely.
I'll have to check if iTerm has the same Apple script support as Terminal.
Yes. I should have been more explicit.
It's been a while since I've scripted anything in iTerm (using some Ruby library IIRC) but I'm quite sure it can be done.
On Sat, Jan 25, 2014 at 6:53 PM, Jakob Egger [email protected]:
I assume you mean that "Open psql" should open iTerm instead of Terminal? Sounds like a good idea. The latest Postgres.app beta has a preference window, so I should be able to integrate that nicely.
I'll have to check if iTerm has the same Apple script support as Terminal.
Reply to this email directly or view it on GitHubhttps://github.com/PostgresApp/PostgresApp/issues/168#issuecomment-33304487 .
Brandon Zylstra [email protected]
+1 This would be nice to have so that Terminal doesn't get opened alongside iTerm. Thanks for building a great little app otherwise!
+1 as a preference, yes please
+1 yes please
+1
+1
+1
+1
+1
+1
+1
also iTerm2 is there a reason why you can't just launch the default terminal app?
- 1
+1
@MattOates we are to lazy to alias '/Applications/Postgres.app/Contents/Versions/9.4/bin'/psql -p5432 psql (9.4.4) ;)
If you set up your PATH (http://postgresapp.com/documentation/cli-tools.html) you can just type psql
Am 29.07.2015 um 00:10 schrieb Carl H [email protected]:
@MattOates we are to lazy to alias '/Applications/Postgres.app/Contents/Versions/9.4/bin'/psql -p5432 psql (9.4.4) ;)
— Reply to this email directly or view it on GitHub.
@jakob https://github.com/PostgresApp/PostgresApp/issues/168#issuecomment-33304487
The offered AppleScript:

@jakob I have the iTerm integration working. I noticed the header for Terminal.app is being generated on build and I wonder if I should the include the generated iTerm.h directly in the xcodeproj instead of creating another build step to generate iTerm.h just like we do for Terminal.h.
@bithavoc awesome!
Please just include the iTerm.h header, otherwise we can build Postgres.app only with iTerm installed -- something I'd like to avoid.