Add support a default association

This commit is contained in:
sin 2014-10-09 15:23:16 +01:00
parent 0e2ea28a30
commit 51253b0564

View file

@ -42,11 +42,12 @@ struct assoc {
/* Configuration */ /* Configuration */
struct assoc assocs[] = { struct assoc assocs[] = {
{ ".(avi|mp4|mkv|mp3|ogg)$", "mplayer" }, { "\\.(avi|mp4|mkv|mp3|ogg)$", "mplayer" },
{ ".srt$", "less" }, { "\\.srt$", "less" },
{ ".txt$", "less" }, { "\\.txt$", "less" },
{ ".sh$", "sh" }, { "\\.sh$", "sh" },
{ "^README$", "less" }, { "^README$", "less" },
{ ".*", "less" },
}; };
struct entry { struct entry {