From 75c579355f16cc96026c6be79cb75613a22eb397 Mon Sep 17 00:00:00 2001 From: Wojciech Siewierski Date: Wed, 4 Feb 2015 21:04:47 +0100 Subject: doc/ranger.1: added some information about the config file loading process --- doc/ranger.1 | 12 +++++++++++- doc/ranger.pod | 10 ++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/ranger.1 b/doc/ranger.1 index 4fef635d..a97ca1a5 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.6.1" "01/29/2015" "ranger manual" +.TH RANGER 1 "ranger-1.6.1" "02/04/2015" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -189,6 +189,10 @@ Change the configuration directory of ranger from ~/.config/ranger to \*(L"dir\* Create copies of the default configuration files in your local configuration directory. Existing ones will not be overwritten. Possible values: \fIall\fR, \&\fIcommands\fR, \fIrc\fR, \fIrifle\fR, \fIscope\fR. +.Sp +Note: You may want to disable loading of the global configuration files by +exporting \fIRANGER_LOAD_DEFAULT_RC=FALSE\fR in your environment. See also: +\&\fB\s-1FILES\s0\fR, \fB\s-1ENVIRONMENT\s0\fR .IP "\fB\-\-choosefile\fR=\fItargetfile\fR" 14 .IX Item "--choosefile=targetfile" Allows you to pick a file with ranger. This changes the behavior so that when @@ -1170,6 +1174,12 @@ You don't need to copy the whole file though, most configuration files are overlaid on top of the defaults (\fIcommands.py\fR, \fIrc.conf\fR) or can be sub-classed (\fIcolorschemes\fR). .PP +That being said, the user configuration files are loaded only after ranger loads +the default configuration files. This may lead to some confusing situations, +for example when a key is being bound despite the corresponding line being +removed from the user's copy of the configuration file. This behavior may be +disabled with an environment variable (see also: \fB\s-1ENVIRONMENT\s0\fR). +.PP When starting ranger with the \fB\-\-clean\fR option, it will not access or create any of these files. .SS "\s-1CONFIGURATION\s0" diff --git a/doc/ranger.pod b/doc/ranger.pod index e2311f3e..375b85a5 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -72,6 +72,10 @@ Create copies of the default configuration files in your local configuration directory. Existing ones will not be overwritten. Possible values: I, I, I, I, I. +Note: You may want to disable loading of the global configuration files by +exporting I in your environment. See also: +B, B + =item B<--choosefile>=I Allows you to pick a file with ranger. This changes the behavior so that when @@ -1238,6 +1242,12 @@ You don't need to copy the whole file though, most configuration files are overlaid on top of the defaults (F, F) or can be sub-classed (F). +That being said, the user configuration files are loaded only after ranger loads +the default configuration files. This may lead to some confusing situations, +for example when a key is being bound despite the corresponding line being +removed from the user's copy of the configuration file. This behavior may be +disabled with an environment variable (see also: B). + When starting ranger with the B<--clean> option, it will not access or create any of these files. -- cgit 1.4.1-2-gfad0