mirror of
https://github.com/jarun/nnn.git
synced 2025-03-28 17:16:36 +00:00
Simplify default regexes
This commit is contained in:
parent
b78755bb01
commit
3f1a93a598
2 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ struct assoc assocs[] = {
|
|||
{ "\\.(html|svg)$", "firefox" },
|
||||
{ "\\.pdf$", "mupdf" },
|
||||
{ "\\.sh$", "sh" },
|
||||
{ ".*", "less" },
|
||||
{ ".", "less" },
|
||||
};
|
||||
|
||||
struct key bindings[] = {
|
||||
|
|
4
noice.c
4
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];
|
||||
|
|
Loading…
Add table
Reference in a new issue