summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 4adea918..32734442 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -182,6 +182,7 @@ def main(
             fm.select_file(args.selectfile)
 
         if args.cmd:
+            fm.enter_dir(fm.thistab.path)
             for command in args.cmd:
                 fm.execute_console(command)