From 5a380e9db2ce72fcbe614953baa00a6d1ce3e6dd Mon Sep 17 00:00:00 2001 From: chrunchyjesus Date: Sat, 8 Jun 2019 07:27:36 +0200 Subject: [PATCH] fix shebang for doctor, org-capture and -tangle --- bin/doom-doctor | 2 +- bin/org-capture | 2 +- bin/org-tangle | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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