Scripts: einfo reader

master
Pierre Neidhardt 2014-02-10 21:13:02 +01:00
parent 39d87f2480
commit 3d21d21757
1 changed files with 14 additions and 0 deletions

14
.scripts/einfo Executable file
View File

@ -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))'