diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-05-22 00:44:26 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-05-22 00:44:26 -0700 |
| commit | 66444fe971f090fdeb63dd897e455418efd5c850 (patch) | |
| tree | 22687647410173f6a6011d64e64fd274becbb5f9 /config.h | |
| parent | 29b4143435bad952b442a263c04a0724518a8b93 (diff) | |
Removed /dev/null hack
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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}, |
