Function: zoxide-add

zoxide-add is an interactive and natively compiled function defined in zoxide.el.

Signature

(zoxide-add &optional PATH &rest _)

Documentation

Add PATH to zoxide database. This function is called asynchronously.

Notice: expand-file-name is used on path here. If your path aren't compatible with it, a new wrapper with zoxide-run should be done manually.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/hrvvrg8iq0dy80la0z05ls131gycsm2z-emacs-packages-deps/share/emacs/site-lisp/elpa/zoxide-20241003.1103/zoxide.el
;;;###autoload
(defun zoxide-add (&optional path &rest _)
  "Add PATH to zoxide database.  This function is called asynchronously.

Notice: `expand-file-name' is used on path here.  If your path aren't compatible
with it, a new wrapper with `zoxide-run' should be done manually."
  (interactive "Dpath: ")
  (unless path
    (setq path (funcall zoxide-get-path-function 'add)))
  (zoxide-run t "add" (expand-file-name path)))