From b65a49785b080ce382c70b211fb575e36ef83cb9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 1 Mar 2022 16:33:44 +0100 Subject: gkleen@sif: ... --- accounts/gkleen@sif/emacs.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'accounts/gkleen@sif/emacs.el') diff --git a/accounts/gkleen@sif/emacs.el b/accounts/gkleen@sif/emacs.el index ad04c9ea..fbbd1ec9 100644 --- a/accounts/gkleen@sif/emacs.el +++ b/accounts/gkleen@sif/emacs.el @@ -84,9 +84,8 @@ (dir (cadr tilde:dir))) (push (cons tilde dir) expand-file-name-custom-tilde-alist))) (mapc #'my/add-to-tilde-alist - (split-string (with-output-to-string - (call-process "zsh" nil standard-output nil "-ic" "hash -d")) - "\n" t)) + (split-string (let ((process-environment (cl-copy-list process-environment))) (setenv "TERM" nil) (with-output-to-string (call-process "script" nil standard-output nil "-qec" "zsh -ic \"hash -d\"" "/dev/null"))) + "\r\n" t)) (defadvice expand-file-name (before expand-file-name-custom-tilde (name &optional default-directory) -- cgit v1.2.3