From 3d21d217574a0a245da04809a79a17243a9d5518 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 10 Feb 2014 21:13:02 +0100 Subject: [PATCH] Scripts: einfo reader --- .scripts/einfo | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .scripts/einfo diff --git a/.scripts/einfo b/.scripts/einfo new file mode 100755 index 00000000..a8df617d --- /dev/null +++ b/.scripts/einfo @@ -0,0 +1,14 @@ +#!/bin/sh + +check() +{ + for i ; do + if ! command -v $i >/dev/null 2>&1; then + echo "'$i' not found in PATH. Exiting." >&2 + exit 1 + fi + done +} +check emacs realpath + +emacs --eval '(progn (info "'"$(realpath "$1")"'")(delete-other-windows))'