summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/fm.py6
-rw-r--r--ranger/core/main.py2
2 files changed, 5 insertions, 3 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index eb99d1f1..22908f46 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -235,14 +235,16 @@ class FM(Actions, SignalDispatcher):
         if which == 'rifle' or which == 'all':
             copy('config/rifle.conf', 'rifle.conf')
         if which == 'commands' or which == 'all':
-            copy('config/commands.py', 'commands.py')
+            copy('config/commands_sample.py', 'commands.py')
+        if which == 'commands_full' or which == 'all':
+            copy('config/commands.py', 'commands_full.py')
         if which == 'rc' or which == 'all':
             copy('config/rc.conf', 'rc.conf')
         if which == 'scope' or which == 'all':
             copy('data/scope.sh', 'scope.sh')
             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'):
+        if which in ('all', 'rifle', 'scope', 'commands', 'commands_full', 'rc'):
             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")
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 9ae8e0ff..9c9ee01b 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -193,7 +193,7 @@ def parse_arguments():
             help="change the configuration directory. (%default)")
     parser.add_option('--copy-config', type='string', metavar='which',
             help="copy the default configs to the local config directory. "
-            "Possible values: all, rc, rifle, commands, scope")
+            "Possible values: all, rc, rifle, commands, commands_full, scope")
     parser.add_option('--fail-unless-cd', action='store_true',
             help=SUPPRESS_HELP)  # COMPAT
     parser.add_option('-m', '--mode', type='int', default=0, metavar='n',