From 836d3797007df23cba76c3272e4722462ef7dcda Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Sun, 4 Oct 2020 01:00:20 -0500 Subject: [PATCH] Update the shell auto-insert --- emacs.org | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs.org b/emacs.org index 3079959..969a0c4 100644 --- a/emacs.org +++ b/emacs.org @@ -1532,9 +1532,9 @@ Create *auto-insert-alist* so all the mode lists are the same "# File: " (file-name-nondirectory buffer-file-name) "\n" "# Copyright: " (substring (current-time-string) -4) " " auto-insert-copyright "\n" "# Description: " _ "\n" - "export script=$(basename \"$0\")\n" - "export dir=$(cd \"$(dirname \"$0\")\"; pwd)\n" - "export iam=${dir}/${script}\n" + "_base=$(basename \"$0\")\n" + "_dir=$(cd -P -- \"$(dirname -- \"$(command -v -- \"$0\")\")\" && pwd -P || exit 126)\n" + "export _base _dir\n" ) ) auto-insert-alist)