diff options
author | hut <hut@lepus.uberspace.de> | 2015-02-09 15:52:35 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-02-09 15:52:35 +0100 |
commit | 64c42d8df0af1c2715f207c2791f60675aa2466e (patch) | |
tree | d5a5aae25bcebf8ef1ac08760de33f1fc8c28181 /ranger | |
parent | a64b664b303fc9af2ff533683b6dfef460430585 (diff) | |
download | ranger-64c42d8df0af1c2715f207c2791f60675aa2466e.tar.gz |
core.fm: give clearer instructions on --copy-config
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/fm.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py index 4fae117d..993e6050 100644 --- a/ranger/core/fm.py +++ b/ranger/core/fm.py @@ -243,9 +243,15 @@ class FM(Actions, SignalDispatcher): os.chmod(self.confpath('scope.sh'), os.stat(self.confpath('scope.sh')).st_mode | stat.S_IXUSR) if which in ('all', 'rifle', 'scope', 'commands', 'rc'): - sys.stderr.write("\nPlease note that configuration files may " - "change as ranger evolves.\nIt's completely up to you to keep " - "them up to date.\n") + sys.stderr.write("\n> Please note that configuration files may " + "change as ranger evolves.\n It's completely up to you to " + "keep them up to date.\n") + if os.environ.get('RANGER_LOAD_DEFAULT_RC', 0) != 'FALSE': + sys.stderr.write("\n> To stop ranger from loading " + "\033[1mboth\033[0m the default and your custom rc.config,\n" + " please set the environment variable " + "\033[1mRANGER_LOAD_DEFAULT_RC\033[0m to " + "\033[1mFALSE\033[0m.\n") else: sys.stderr.write("Unknown config file `%s'\n" % which) |