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.
Showing
- doc/src/sgml/ref/psql-ref.sgml 58 additions, 45 deletionsdoc/src/sgml/ref/psql-ref.sgml
- doc/src/sgml/release-9.1.sgml 1 addition, 1 deletiondoc/src/sgml/release-9.1.sgml
- src/bin/psql/command.c 11 additions, 8 deletionssrc/bin/psql/command.c
- src/bin/psql/settings.h 2 additions, 0 deletionssrc/bin/psql/settings.h
Loading
Please register or sign in to comment