Skip to content

Instantly share code, notes, and snippets.

@skanev
Last active March 26, 2016 14:40
Show Gist options
  • Save skanev/3620c288305cea367f47 to your computer and use it in GitHub Desktop.
Save skanev/3620c288305cea367f47 to your computer and use it in GitHub Desktop.
A patch for homebrew less to add a not very useful option
diff --git a/command.c b/command.c
index c31fa81..11d7483 100644
--- a/command.c
+++ b/command.c
@@ -273,10 +273,13 @@ exec_mca()
if (secure)
break;
- if (shellcmd == NULL)
+ if (shellcmd == NULL) {
lsystem("", "!done");
- else
+ } else if (genenv("LESS_QUICKSHELL") != NULL) {
+ lsystem(shellcmd, (char *) NULL);
+ } else {
lsystem(shellcmd, "!done");
+ }
break;
#endif
#if PIPEC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment