lib/termvana/app/commands/cd.rb in termvana-0.2.0.beta2 vs lib/termvana/app/commands/cd.rb in termvana-0.2.0.beta3
- old
+ new
@@ -5,9 +5,12 @@
name "cd"
def call
dir = request[1] || "~"
Dir.chdir(environment.fullpath(dir))
environment.env["PWD"] = environment.cwd = Dir.pwd
+ # Send system env update to JS
+ respond_with(:data => {:environment => environment}, :type => :system)
+ # Terminate with null message
finish
end
end
end