mirror of
https://github.com/jarun/nnn.git
synced 2025-02-17 14:54:36 +00:00
Add config.def.h
This commit is contained in:
parent
a9b5370ac6
commit
43fa667cd6
8
Makefile
8
Makefile
|
@ -6,10 +6,14 @@ BIN = noice
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
|
||||||
$(BIN): $(OBJ)
|
$(BIN): config.h $(OBJ)
|
||||||
$(CC) -o $@ $(OBJ) $(LDLIBS)
|
$(CC) -o $@ $(OBJ) $(LDLIBS)
|
||||||
|
|
||||||
noice.o: noice.c queue.h util.h
|
config.h:
|
||||||
|
@echo copying config.def.h to $@
|
||||||
|
@cp config.def.h $@
|
||||||
|
|
||||||
|
noice.o: noice.c util.h
|
||||||
$(CC) -c noice.c
|
$(CC) -c noice.c
|
||||||
|
|
||||||
strlcpy.o: strlcpy.c util.h
|
strlcpy.o: strlcpy.c util.h
|
||||||
|
|
9
config.def.h
Normal file
9
config.def.h
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
/* Configuration */
|
||||||
|
struct assoc assocs[] = {
|
||||||
|
{ "\\.(avi|mp4|mkv|mp3|ogg)$", "mplayer" },
|
||||||
|
{ "\\.(png|jpg|gif)$", "feh" },
|
||||||
|
{ "\\.(html|svg)$", "firefox" },
|
||||||
|
{ "\\.pdf$", "mupdf" },
|
||||||
|
{ "\\.sh$", "sh" },
|
||||||
|
{ ".*", "less" },
|
||||||
|
};
|
10
noice.c
10
noice.c
|
@ -43,15 +43,7 @@ struct assoc {
|
||||||
char *bin; /* Program */
|
char *bin; /* Program */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Configuration */
|
#include "config.h"
|
||||||
struct assoc assocs[] = {
|
|
||||||
{ "\\.(avi|mp4|mkv|mp3|ogg)$", "mplayer" },
|
|
||||||
{ "\\.(png|jpg|gif)$", "feh" },
|
|
||||||
{ "\\.(html|svg)$", "firefox" },
|
|
||||||
{ "\\.pdf$", "mupdf" },
|
|
||||||
{ "\\.sh$", "sh" },
|
|
||||||
{ ".*", "less" },
|
|
||||||
};
|
|
||||||
|
|
||||||
struct entry {
|
struct entry {
|
||||||
char *name;
|
char *name;
|
||||||
|
|
Loading…
Reference in a new issue