about summary refs log tree commit diff stats
path: root/ranger.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ranger.rb')
-rwxr-xr-xranger.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger.rb b/ranger.rb
index 33af212f..3bfdf17b 100755
--- a/ranger.rb
+++ b/ranger.rb
@@ -34,6 +34,7 @@ opt = {
 	:sort => :name,
 	:dir_first => true,
 	:sort_reverse => false,
+	:cd => ARGV.include?('--cd'),
 	:colorscheme => true,
 	:wide_bar => true,
 	:file_preview => true,
@@ -76,6 +77,8 @@ ensure
 	closei if CLI.running?
 	Fm.dump
 
+	Fm.dump_pwd_to_3 if Option.cd
+
 	# Kill all other threads
 	for thr in Thread.list
 		unless thr == Thread.current