diff options
author | sin <sin@2f30.org> | 2014-10-09 15:23:16 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-10-09 15:24:39 +0100 |
commit | 51253b056474cf261c3b8c6af936f100d0aa39b5 (patch) | |
tree | fa51419813fca5e14ecf2d2eeccfb0be7f4a1d6d | |
parent | 0e2ea28a3097ed98c96042cd32dc6d7ef72abc7b (diff) | |
download | nnn-51253b056474cf261c3b8c6af936f100d0aa39b5.tar.gz |
Add support a default association
-rw-r--r-- | noice.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 { |