From ae16120aebf58a79c804f8be75174a6470f1a9b5 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 15 Jun 2009 20:35:50 +0200 Subject: added filetype rules --- data/types.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/data/types.rb b/data/types.rb index 8719f07c..d6e00a09 100644 --- a/data/types.rb +++ b/data/types.rb @@ -41,11 +41,17 @@ class Directory::Entry end - ## second, look at the extension case @ext when 'swc', 'smc' use.zsnes + when 'rar', 'zip', 'tar', 'gz', '7z', 'jar', 'bz', 'bz2' + use.aunpack + + end + + if executable? + use.vi_or_run end ## otherwise use vi -- cgit 1.4.1-2-gfad0