use system pager to display changelog messages

This commit is contained in:
Dan Loewenherz
2013-08-07 14:29:16 -04:00
committed by Watson
parent 98d4ddf5b0
commit a0ff6cc464

View File

@@ -31,7 +31,8 @@ module Motion; module Project
die "Usage: motion changelog"
end
system("more /Library/RubyMotion/NEWS")
pager = (ENV['PAGER'] or '/usr/bin/less')
system("#{pager} /Library/RubyMotion/NEWS")
end
end
end; end