File: 54-debian-alternatives-for-external-tools.patch

package info (click to toggle)
postgresql-15 15.13-0%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 166,512 kB
  • sloc: ansic: 899,752; sql: 109,423; perl: 42,533; yacc: 36,866; xml: 31,046; lex: 8,906; makefile: 6,175; sh: 4,842; cpp: 1,105; python: 151; asm: 65; sed: 16
file content (28 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Author: Martin Pitt <mpitt@debian.org>
Description: Use Debian alternatives for external tools instead of hardcoded programs
Forwarded: No, Debian specific

--- a/src/bin/psql/settings.h
+++ b/src/bin/psql/settings.h
@@ -19,8 +19,8 @@
 #define DEFAULT_EDITOR	"notepad.exe"
 /* no DEFAULT_EDITOR_LINENUMBER_ARG for Notepad */
 #else
-#define DEFAULT_EDITOR	"vi"
-#define DEFAULT_EDITOR_LINENUMBER_ARG "+"
+#define DEFAULT_EDITOR	"sensible-editor"
+/*#define DEFAULT_EDITOR_LINENUMBER_ARG "+"*/
 #endif
 
 #define DEFAULT_PROMPT1 "%/%R%x%# "
--- a/src/include/fe_utils/print.h
+++ b/src/include/fe_utils/print.h
@@ -20,7 +20,7 @@
 
 /* This is not a particularly great place for this ... */
 #ifndef __CYGWIN__
-#define DEFAULT_PAGER "more"
+#define DEFAULT_PAGER "pager"
 #else
 #define DEFAULT_PAGER "less"
 #endif