你可能需要安装这个包
这是我的设置:
(use-package exec-path-from-shell
:when (or (memq window-system '(mac ns x))
(unless (memq system-type '(ms-dos windows-nt))
(daemonp)))
:custom (exec-path-from-shell-arguments '("-l"))
:config
(dolist (var '("GPG_AGENT_INFO" "LANG" "LC_CTYPE"))
(add-to-list 'exec-path-from-shell-variables var))
(exec-path-from-shell-initialize))
你进 eshell 看看当前找到的是那个 ls 命令