Postgresapp: Support for iTerm

Created on 25 Jan 2014  Â·  23Comments  Â·  Source: PostgresApp/PostgresApp

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.

All 23 comments

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
brandon.[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 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.

Postgres.app 2.0 now has a preference to open databases in iTerm 2 instead of Terminal.

when I open database in iTerm2, there is a error that "The operation couldn’t be completed. (com.postgresapp.Postgres2.ClientLauncher error 0.)"

You have to make sure that iTerm is located inside your Applications folder. Since Postgres.app opens iTerm via Apple Script, you can check its availability with this script:

tell application "iTerm"
    activate
end tell

This command should open iTerm, otherwise you'll be asked for its location. Hope this helps!

Was this page helpful?
0 / 5 - 0 ratings