diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-17 18:32:31 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-17 18:32:31 +0000 |
commit | 6444bc35357db9ce16af8584d7baaa30e510724b (patch) | |
tree | a2b6220b2f22e62e3764895d216506db1c87f7d3 | |
parent | b9d8ea278b28f7cf96f8daee00b324a043e60fbd (diff) |
Set DEFAULT_EDITOR to notepad.exe on Windows, as per recent discussion.
-rw-r--r-- | src/bin/psql/settings.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/psql/settings.h b/src/bin/psql/settings.h index 2c44b3133fb..87855b5051d 100644 --- a/src/bin/psql/settings.h +++ b/src/bin/psql/settings.h @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2004, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/settings.h,v 1.21 2004/08/29 05:06:54 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/settings.h,v 1.22 2004/11/17 18:32:31 tgl Exp $ */ #ifndef SETTINGS_H #define 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%# " |