summary refs log tree commit diff stats
path: root/examples/plugin_skip_default_rc.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/plugin_skip_default_rc.py')
-rw-r--r--examples/plugin_skip_default_rc.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/plugin_skip_default_rc.py b/examples/plugin_skip_default_rc.py
new file mode 100644
index 00000000..6a657a99
--- /dev/null
+++ b/examples/plugin_skip_default_rc.py
@@ -0,0 +1,9 @@
+# This plugin inhibits the loading of the default rc.conf.  This serves to
+# speed up starting time by avoiding to load rc.conf twice if you have a full
+# copy of it in ~/.config/ranger.
+#
+# Don't use this if you have a supplementary rc.conf or no rc.conf at all, or
+# you will end up without key bindings and options.
+
+import ranger.core.main
+ranger.core.main.load_default_config = False