Simplify default regexes

This commit is contained in:
lostd 2014-11-25 17:20:06 +02:00
parent b78755bb01
commit 3f1a93a598
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ struct assoc assocs[] = {
{ "\\.(html|svg)$", "firefox" },
{ "\\.pdf$", "mupdf" },
{ "\\.sh$", "sh" },
{ ".*", "less" },
{ ".", "less" },
};
struct key bindings[] = {

View File

@ -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];