From 2c5ccaa864f0dcbefe6fc240b3ccffdf490cb6a6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 31 Aug 2018 00:19:34 +0200 Subject: [PATCH] Update patch-macos documentation Follows up on 0fc9b6be --- core/core-cli.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-cli.el b/core/core-cli.el index f269c53c8..8d1c63618 100644 --- a/core/core-cli.el +++ b/core/core-cli.el @@ -206,10 +206,10 @@ This patch fixes this by patching Emacs.app (in /Applications or 1. Move Contents/MacOS/Emacs to Contents/MacOS/RunEmacs 2. And replace Contents/MacOS/Emacs with the following wrapper script: - #!/usr/bin/env bash + #!/bin/bash args=\"$@\" pwd=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")\"; pwd -P)\" - exec \"$SHELL\" -c \"$pwd/RunEmacs $args\" + exec \"$SHELL\" -l -c \"$pwd/RunEmacs $args\" This ensures that Emacs is always aware of your shell environment, regardless of how it is launched.