Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Fix the psql plugin command on OSX to work more reliably.
Browse files Browse the repository at this point in the history
  • Loading branch information
druido authored and dpage committed Mar 22, 2016
1 parent d00526e commit 1ea137f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Changes

Date Dev Ver Change details
---------- --- ------ --------------
2016-03-22 DP 1.22.2 Fix the psql plugin command on OSX to work more
reliably [Nicola Vitacolonna]
2016-02-16 DP 1.24.0 Allow multiple SQL editor tabs to be used in the
query tool [Sergey Busel]
2016-02-16 DP 1.22.2 Prevent a crash in some situtions where the database
Expand Down
2 changes: 1 addition & 1 deletion plugins.d/plugins.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ SetPassword=Yes
; PSQL (OSX):
;
Title=PSQL Console
Command=/usr/bin/osascript -e 'ignoring application responses' -e 'tell application "Terminal"' -e 'activate' -e 'do script with command "\'$$PGBINDIR/psql\' --host \'$$HOSTNAME\' --port $$PORT --username \'$$USERNAME\' \'$$DATABASE\' && exit || sleep 5 && exit"' -e 'end tell' -e 'end ignoring'
Command=/usr/bin/osascript -e 'ignoring application responses' -e 'tell application "Terminal"' -e 'activate' -e 'do script ""' -e 'do script "\'$$PGBINDIR/psql\' --host \'$$HOSTNAME\' --port $$PORT --username \'$$USERNAME\' \'$$DATABASE\' && exit || sleep 5 && exit" in window 1' -e 'end tell' -e 'end ignoring'
Description=Open a PSQL console to the current database.
KeyFile=$$PGBINDIR/psql
Platform=osx
Expand Down

0 comments on commit 1ea137f

Please sign in to comment.