Function: ghostel--logical-pwd-env
ghostel--logical-pwd-env is a natively compiled function defined in
ghostel.el.
Signature
(ghostel--logical-pwd-env REMOTE-P)
Documentation
Return a PWD env entry naming the logical default-directory, as a list.
Shells keep an inherited PWD naming the cwd; without this entry a shell started in a symlinked directory shows the getcwd()-resolved physical path in its prompt and OSC 7. Nil when REMOTE-P, and on Windows: an MSYS shell keeps the Windows-form value verbatim and reports it glued into its OSC 7 authority.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--logical-pwd-env (remote-p)
"Return a PWD env entry naming the logical `default-directory', as a list.
Shells keep an inherited PWD naming the cwd; without this entry a shell
started in a symlinked directory shows the getcwd()-resolved physical
path in its prompt and OSC 7. Nil when REMOTE-P, and on Windows: an
MSYS shell keeps the Windows-form value verbatim and reports it glued
into its OSC 7 authority."
(unless (or remote-p (eq system-type 'windows-nt))
(list (format "PWD=%s"
(directory-file-name (expand-file-name default-directory))))))