einfo 245 B

123456789101112
  1. #!/bin/sh
  2. for i in emacs realpath ; do
  3. if ! command -v $i >/dev/null 2>&1; then
  4. echo >&2 "'$i' not found"
  5. exit 1
  6. fi
  7. done
  8. [ -f "$1" ] && node="$(realpath "$1")" || node="$1"
  9. emacs --eval '(progn (info "'"$node"'")(delete-other-windows))'