about summary refs log tree commit diff stats
path: root/code/fm.rb
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-03 17:18:10 +0200
committerhut <hut@lavabit.com>2009-07-03 17:18:10 +0200
commit27ebfe639466906a9bdaeb3a8ade280e07921122 (patch)
treef143e6edf51a683892ad817199531e41e9dc802e /code/fm.rb
parentbe1b7c36653f0cb40441648fa324ea2ddc173446 (diff)
downloadranger-27ebfe639466906a9bdaeb3a8ade280e07921122.tar.gz
--cd switch
allows to cd to the last dir in the parent shell.
type ?z inside ranger for more infos
Diffstat (limited to 'code/fm.rb')
-rw-r--r--code/fm.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/code/fm.rb b/code/fm.rb
index ba33279a..0f2893b3 100644
--- a/code/fm.rb
+++ b/code/fm.rb
@@ -84,6 +84,13 @@ module Fm
 		$VERBOSE = old_verbose_level
 	end
 
+	def dump_pwd_to_3()
+		f = File.open(3, 'a')
+		f.puts(Fm.pwd.path)
+#		f.puts(Fm.pwd.path.bash_escape)
+		f.close
+	end
+
 	def boot_up(pwd=nil)
 		pwd ||= @pwd.path || Dir.getwd
 		Scheduler.reset