commit 3f1a93a5981d81936e6d18288213b71fb46cfc15
parent b78755bb01c8615339085bcfe0ab30b49e13109c
Author: lostd <lostd@2f30.org>
Date: Tue, 25 Nov 2014 17:20:06 +0200
Simplify default regexes
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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
@@ -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];