From: lostd Date: Tue, 25 Nov 2014 15:20:06 +0000 (+0200) Subject: Simplify default regexes X-Git-Tag: v1.0~92^2~110 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3f1a93a5981d81936e6d18288213b71fb46cfc15;p=nnn.git Simplify default regexes --- diff --git a/config.def.h b/config.def.h index 855af216..150968e5 100644 --- a/config.def.h +++ b/config.def.h @@ -8,7 +8,7 @@ struct assoc assocs[] = { { "\\.(html|svg)$", "firefox" }, { "\\.pdf$", "mupdf" }, { "\\.sh$", "sh" }, - { ".*", "less" }, + { ".", "less" }, }; struct key bindings[] = { diff --git a/noice.c b/noice.c index e656949f..0f55a8bf 100644 --- a/noice.c +++ b/noice.c @@ -758,9 +758,9 @@ main(int argc, char *argv[]) char *ifilter; if (getuid() == 0) - ifilter = ".*"; + ifilter = "."; else - ifilter = "^[^.].*"; /* Hide dotfiles */ + ifilter = "^[^.]"; /* Hide dotfiles */ if (argv[1] != NULL) { ipath = argv[1];