diff options
author | William Carroll <wpcarro@gmail.com> | 2017-06-15T20·45-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2017-06-15T20·45-0400 |
commit | 1cd470b85dbbf41b6d0e04dc815945096eafbd3d (patch) | |
tree | f4cc55eff65da57df004caf0897ee2334a8f9bef | |
parent | bea42cf0f9dbd801b4ced7892af835538106f8e1 (diff) |
Updates emacs pager helper script
-rwxr-xr-x | bins/bin/create-shell-pager.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bins/bin/create-shell-pager.sh b/bins/bin/create-shell-pager.sh index a0f42cfd2411..f1e3e2fcff4a 100755 --- a/bins/bin/create-shell-pager.sh +++ b/bins/bin/create-shell-pager.sh @@ -1,7 +1,7 @@ -#!/bin/sh +#!/usr/bin/env zsh file=$(mktemp -t "$USER-"XXXXXXXX.emacs-pager) || exit 127 trap 'rm -f "$file"' EXIT trap 'exit 255' HUP INT QUIT TERM cat "$@" >"$file" -emacsclient -e "(wc/open-in-pager \"$file\")" +emacsclient -e "(wc/open-in-pager \"$file\")" >/dev/null |