Update envvar file comment header

Envvar files are now refreshed on `doom refresh`, if it exists. A while
back I removed the `doom env reload` step.
This commit is contained in:
Henrik Lissner 2019-08-15 16:07:16 -04:00
parent 85b36c4aec
commit d298a8e71c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -116,16 +116,13 @@ default, on Linux, this is '$SHELL -ic /usr/bin/env'. Variables in
doom-env-switches doom-env-switches
doom-env-executable) doom-env-executable)
"# ---------------------------------------------------------------------------\n" "# ---------------------------------------------------------------------------\n"
"# This file was auto-generated by `doom env refresh'. It contains a list of\n" "# This file was auto-generated by `doom env'. It contains a list of environment\n"
"# environment variables scraped from your default shell (excluding variables\n" "# variables scraped from your default shell (excluding variables blacklisted\n"
"# blacklisted in doom-env-ignored-vars).\n" "# in doom-env-ignored-vars).\n"
"#\n" "#\n"
"# It is NOT safe to edit this file. Changes will be overwritten next time that\n" "# It is NOT safe to edit this file. Changes will be overwritten next time that\n"
"# `doom env refresh` is executed. Alternatively, create your own env file and\n" "# `doom refresh` is executed. Alternatively, create your own env file and load\n"
"# load it with `(doom-load-envvars-file FILE)`.\n" "# it with `(doom-load-envvars-file FILE)` in your private config.el.\n"
"#\n"
"# To auto-regenerate this file when `doom reload` is run, use `doom env auto' or\n"
"# set DOOMENV=1 in your shell environment/config.\n"
"# ---------------------------------------------------------------------------\n\n")) "# ---------------------------------------------------------------------------\n\n"))
(goto-char (point-min)) (goto-char (point-min))
(while (re-search-forward "\n\\([^= \n]+\\)=" nil t) (while (re-search-forward "\n\\([^= \n]+\\)=" nil t)