projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
585f1e9
)
Set DEFAULT_EDITOR to notepad.exe on Windows, as per recent discussion.
author
Tom Lane
<
[email protected]
>
Wed, 17 Nov 2004 18:32:31 +0000
(18:32 +0000)
committer
Tom Lane
<
[email protected]
>
Wed, 17 Nov 2004 18:32:31 +0000
(18:32 +0000)
src/bin/psql/settings.h
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/settings.h
b/src/bin/psql/settings.h
index 1dacc7e91acc678c588315dc7ecad99c99d0232e..388c8fa315ee34d1678af30483874c12b64f99dd 100644
(file)
--- a/
src/bin/psql/settings.h
+++ b/
src/bin/psql/settings.h
@@
-15,7
+15,12
@@
#define DEFAULT_FIELD_SEP "|"
#define DEFAULT_RECORD_SEP "\n"
+
+#if defined(WIN32) || defined(__CYGWIN__)
+#define DEFAULT_EDITOR "notepad.exe"
+#else
#define DEFAULT_EDITOR "vi"
+#endif
#define DEFAULT_PROMPT1 "%/%R%# "
#define DEFAULT_PROMPT2 "%/%R%# "