From 1cd470b85dbbf41b6d0e04dc815945096eafbd3d Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 15 Jun 2017 16:45:11 -0400 Subject: [PATCH] Updates emacs pager helper script --- bins/bin/create-shell-pager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bins/bin/create-shell-pager.sh b/bins/bin/create-shell-pager.sh index a0f42cfd2..f1e3e2fcf 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