aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar sin <sin@2f30.org>2014-10-09 15:23:16 +0100
committerGravatar sin <sin@2f30.org>2014-10-09 15:24:39 +0100
commit51253b056474cf261c3b8c6af936f100d0aa39b5 (patch)
treefa51419813fca5e14ecf2d2eeccfb0be7f4a1d6d
parent0e2ea28a3097ed98c96042cd32dc6d7ef72abc7b (diff)
downloadnnn-51253b056474cf261c3b8c6af936f100d0aa39b5.tar.gz
Add support a default association
-rw-r--r--noice.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/noice.c b/noice.c
index 7904367..a1d488f 100644
--- a/noice.c
+++ b/noice.c
@@ -42,11 +42,12 @@ struct assoc {
/* Configuration */
struct assoc assocs[] = {
- { ".(avi|mp4|mkv|mp3|ogg)$", "mplayer" },
- { ".srt$", "less" },
- { ".txt$", "less" },
- { ".sh$", "sh" },
+ { "\\.(avi|mp4|mkv|mp3|ogg)$", "mplayer" },
+ { "\\.srt$", "less" },
+ { "\\.txt$", "less" },
+ { "\\.sh$", "sh" },
{ "^README$", "less" },
+ { ".*", "less" },
};
struct entry {