diff --git a/bin/doom-doctor b/bin/doom-doctor index 004ba5728..c91c273d2 100755 --- a/bin/doom-doctor +++ b/bin/doom-doctor @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ":"; command -v emacs >/dev/null || { >&2 echo "Emacs isn't installed"; exit 1; } # -*-emacs-lisp-*- ":"; VERSION=$(emacs --version | head -n1) ":"; case $VERSION in *\ 2[0-2].[0-1].[0-9]) echo "You're running $VERSION"; echo "That version is too old to run the doctor. Check your PATH"; echo; exit 2 ;; esac diff --git a/bin/org-capture b/bin/org-capture index 033604086..15d6f0a34 100755 --- a/bin/org-capture +++ b/bin/org-capture @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Open an org-capture popup frame from the shell. This opens a temporary emacs # daemon if emacs isn't already running. diff --git a/bin/org-tangle b/bin/org-tangle index 79f50e851..7323c513c 100755 --- a/bin/org-tangle +++ b/bin/org-tangle @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ":"; exec emacs --quick --script "$0" -- "$@" # -*- mode: emacs-lisp; lexical-binding: t; -*- ;;; bin/org-tangle