Function: org-eshell-store-link

org-eshell-store-link is a byte-compiled function defined in ol-eshell.el.gz.

Signature

(org-eshell-store-link)

Documentation

Store a link that, when opened, switches back to the current eshell buffer and the current working directory.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ol-eshell.el.gz
(defun org-eshell-store-link ()
  "Store a link that, when opened, switches back to the current eshell buffer
and the current working directory."
  (when (eq major-mode 'eshell-mode)
    (let* ((command (concat "cd " (eshell/pwd)))
           (link  (concat (buffer-name) ":" command)))
      (org-link-store-props
       :link (concat "eshell:" link)
       :description command))))