lib/tmbundle.rb in tmbundle-manager-0.1.0.pre8 vs lib/tmbundle.rb in tmbundle-manager-0.1.0

- old
+ new

@@ -109,9 +109,17 @@ bundles_list.all.each do |bundle| puts "- #{bundle.name.ljust(30)} (#{bundle.path})" end end + desc 'cd PARTIAL_NAME', 'open a terminal in the bundle dir' + def cd(partial_name) + bundle = find_bundle(partial_name) + within bundle do + system 'open', bundle.path, '-a', 'Terminal.app' + end + end + private def find_bundle(partial_name)