aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-05-22 00:44:26 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-05-22 00:44:26 -0700
commit66444fe971f090fdeb63dd897e455418efd5c850 (patch)
tree22687647410173f6a6011d64e64fd274becbb5f9 /config.h
parent29b4143435bad952b442a263c04a0724518a8b93 (diff)
Removed /dev/null hack
Diffstat (limited to 'config.h')
-rw-r--r--config.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/config.h b/config.h
index 7659983..ff6ff89 100644
--- a/config.h
+++ b/config.h
@@ -12,8 +12,6 @@
#define CLEAR_SELECTION (1<<3)
#define ONSCREEN (1<<4)
-#define DEVNULL " >/dev/null"
-
struct {
int key;
const char *command;
@@ -21,11 +19,11 @@ struct {
} bindings[] = {
// User-defined custom scripts go here:
{'L', "less"},
- {'D', "xargs rm -rf" DEVNULL, CLEAR_SELECTION | REFRESH | ONSCREEN},
+ {'D', "xargs rm -rf", CLEAR_SELECTION | REFRESH | ONSCREEN},
{'d', "xargs -I @ sh -c 'rm -rfi @ </dev/tty'", CLEAR_SELECTION | REFRESH | ONSCREEN},
- {'c', "xargs -n1 -I @ cp @ @.copy" DEVNULL, REFRESH | ONSCREEN},
- {'m', "xargs -I @ mv -i @ . </dev/tty" DEVNULL, CLEAR_SELECTION | REFRESH | ONSCREEN},
- {'p', "xargs -I @ cp -i @ . </dev/tty" DEVNULL, CLEAR_SELECTION | REFRESH | ONSCREEN},
+ {'c', "xargs -n1 -I @ cp @ @.copy", REFRESH | ONSCREEN},
+ {'m', "xargs -I @ mv -i @ . </dev/tty", CLEAR_SELECTION | REFRESH | ONSCREEN},
+ {'p', "xargs -I @ cp -i @ . </dev/tty", CLEAR_SELECTION | REFRESH | ONSCREEN},
{'n', "touch \"`printf '\\033[33;1mNew file:\\033[0m ' >/dev/tty && head -n1 /dev/tty`\"", ONSCREEN | REFRESH | NO_FILES},
{'|', "sh -c \"`printf '> ' >/dev/tty && head -n1 /dev/tty`\"", REFRESH},
{'>', "sh -c \"`printf '> ' >/dev/tty && head -n1 /dev/tty`\"", NO_FILES | REFRESH},