                      (print! (info "Ignoring %s") var)
                      (delete-region (match-beginning 0) (1- valend)))))))
             (print! (success "Successfully generated %S")
-                    (relpath env-file doom-emacs-dir))
+                    (path env-file))
             t))))))

                (if (file-exists-p env-file)
                    "Regenerating"
                  "Generating")
                (relpath env-file doom-emacs-dir))
        (let ((process-environment doom--initial-process-environment))
          (let ((shell-command-switch doom-env-switches)
                (error-buffer (get-buffer-create "*env errors*")))

  (when (member "clear" args)  ; DEPRECATED
    (message "'doom env clear' is deprecated. Use 'doom env -c' or 'doom env --clear' instead")
    (push "-c" args))
  (let ((env-file (or (cadr (member "-o" args))
                      doom-env-file)))
    (cond ((or (member "-c" args)
               (member "--clear" args))
           (unless (file-exists-p env-file)
             (user-error! "%S does not exist to be cleared"
                          (path env-file)))
           (delete-file env-file)
           (print! (success "Successfully deleted %S")
                   (path env-file)))

          ((or (null args)
               (member "-o" args))
