Change EDITOR_LINENUMBER_SWITCH to an environment variable
Peter Eisentraut <peter_e@gmx.net>
Change EDITOR_LINENUMBER_SWITCH to an environment variable Also change "switch" to "arg" because "switch" is a bit of a sloppy term. So the environment variable is called PSQL_EDITOR_LINENUMBER_ARG. Set "+" as hardcoded default value on Unix (since "vi" is the hardcoded default editor), so many users won't have to configure this at all. Move the documentation around a bit to centralize the editor configuration under environment variables, rather than repeating bits of it under every backslash command that invokes an editor.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/psql-ref.sgml | modified | +58 −45 |
| doc/src/sgml/release-9.1.sgml | modified | +1 −1 |
| src/bin/psql/command.c | modified | +11 −8 |
| src/bin/psql/settings.h | modified | +2 −0 |