Updates emacs pager helper script
This commit is contained in:
parent
bea42cf0f9
commit
1cd470b85d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue