feat(cli): allow opting-out of deploying git hooks
That's helpful when we need to `doom install` in a non-git directory. Fix: #5878 Close: #5862
This commit is contained in:
parent
265afc9e07
commit
1c1ad3a8c8
1 changed files with 6 additions and 3 deletions
|
@ -4,7 +4,8 @@
|
||||||
((noconfig-p ["--no-config"] "Don't create DOOMDIR or dummy files therein")
|
((noconfig-p ["--no-config"] "Don't create DOOMDIR or dummy files therein")
|
||||||
(noenv-p ["--no-env"] "Don't generate an envvars file (see 'doom help env')")
|
(noenv-p ["--no-env"] "Don't generate an envvars file (see 'doom help env')")
|
||||||
(noinstall-p ["--no-install"] "Don't auto-install packages")
|
(noinstall-p ["--no-install"] "Don't auto-install packages")
|
||||||
(nofonts-p ["--no-fonts"] "Don't install (or prompt to install) all-the-icons fonts"))
|
(nofonts-p ["--no-fonts"] "Don't install (or prompt to install) all-the-icons fonts")
|
||||||
|
(nohooks-p ["--no-hooks"] "Don't deploy git hooks"))
|
||||||
"Installs and sets up Doom Emacs for the first time.
|
"Installs and sets up Doom Emacs for the first time.
|
||||||
|
|
||||||
This command does the following:
|
This command does the following:
|
||||||
|
@ -73,8 +74,10 @@ name. e.g.
|
||||||
(print! "Regenerating autoloads files")
|
(print! "Regenerating autoloads files")
|
||||||
(doom-autoloads-reload)
|
(doom-autoloads-reload)
|
||||||
|
|
||||||
(print! "Deploying commit-msg and pre-push git hooks")
|
(if nohooks-p
|
||||||
(doom-cli--ci-deploy-hooks)
|
(print! (warn "Not deploying commit-msg and pre-push git hooks, as requested"))
|
||||||
|
(print! "Deploying commit-msg and pre-push git hooks")
|
||||||
|
(doom-cli--ci-deploy-hooks))
|
||||||
|
|
||||||
(cond (nofonts-p)
|
(cond (nofonts-p)
|
||||||
(IS-WINDOWS
|
(IS-WINDOWS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue