File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ module CB
1414
1515 DASHBOARD_HOST = ENV [" CB_DASHBOARD_HOST" ]? || HOST .gsub(/\A api\. / , " " )
1616
17+ PSQLRC = File .expand_path(ENV [" PSQLRC" ]? || " ~/.psqlrc" , home: true )
18+
1719 # Release constants.
1820 BUILD_RELEASE = {{ flag?(:release ) }}
1921 SHARDS_VERSION = {{ ` shards version "#{ __DIR__ } "` .chomp.stringify }}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ module CB
9595 end
9696
9797 psqlrc = File .tempfile(c.id, " psqlrc" )
98- File .copy(" ~/.psqlrc " , psqlrc.path) if File .exists?(" ~/.psqlrc " )
98+ File .copy(CB :: PSQLRC , psqlrc.path) if File .exists?(CB :: PSQLRC )
9999 File .open(psqlrc.path, " a" ) do |f |
100100 f.puts " \\ set ON_ERROR_ROLLBACK interactive"
101101 f.puts " \\ set PROMPT1 '#{ psqlpromptname } /%[%033[33;1m%]%x%x%x%[%033[0m%]%[%033[1m%]%/%[%033[0m%]%R%# '"
You can’t perform that action at this time.
0 commit comments