Permalink
Browse files

Support for running shell slides

  • Loading branch information...
1 parent c395794 commit 943a1d567d713335ee47c4e0888f9a16f8f30ed6 @mikegrb mikegrb committed Jul 17, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Vroom.pm
View
@@ -182,6 +182,9 @@ sub runSlide {
elsif ($slide =~ /\.yaml$/) {
exec "clear; $^X -MYAML::XS -MData::Dumper -e '\$Data::Dumper::Terse = 1; \$Data::Dumper::Indent = 1; print Dumper YAML::XS::LoadFile(shift)' run.slide";
}
+ elsif ($slide =~ /\.sh$/) {
+ exec "clear; $ENV{SHELL} -i run.slide";
+ }
}
sub trim_slide {

0 comments on commit 943a1d5

Please sign in to comment.