                       (when (string-suffix-p "/" output)
                         (setq output (substring output 0 -1)))
                       output)
-                  buffer-path))))
-     'face (if active 'doom-modeline-alternate))))
+                  buffer-path))))))
 
 (defun *buffer-name ()
   "The buffer's base name or id."

(defvar-local doom-ml--env-command nil)

;; So the mode-line can keep track of "the current window"
(defvar mode-line-selected-window nil)
(defun doom|set-selected-window (&rest _)
  (let ((window (frame-selected-window)))
    (when (and (windowp window)
               (not (minibuffer-window-active-p window)))
      (setq mode-line-selected-window window))))
(add-hook 'window-configuration-change-hook #'doom|set-selected-window)
(add-hook 'focus-in-hook #'doom|set-selected-window)
(advice-add 'select-window :after 'doom|set-selected-window)

        "?"
      (cdr-safe (assq state (flycheck-count-errors flycheck-current-errors))))))

;; pyenv/rbenv version segment
(defvar doom-ml-env-version-hook '()
  "Hook that runs whenever the environment version changes (e.g. rbenv/pyenv)")
