summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-06-01 16:54:40 +0200
committerLudovic Courtès <ludo@gnu.org>2022-06-04 12:04:24 +0200
commit35c1edb20ad07250728d3bdcd0296bd0cedaf6bb (patch)
tree54e090e2a46f7f867f85df5d3a24ba8e862f54cd /doc
parent8eb17cebc1027b5ae1c4047c704b92ad73b783fd (diff)
downloadguix-patches-35c1edb20ad07250728d3bdcd0296bd0cedaf6bb.tar
guix-patches-35c1edb20ad07250728d3bdcd0296bd0cedaf6bb.tar.gz
guix home: Add 'edit' sub-command.
* guix/scripts/home/edit.scm: New file. * Makefile.am (MODULES): Add it. * guix/scripts/home.scm (show-help): Add "edit". (process-command): Handle it. (guix-home): Add it. * po/guix/POTFILES.in: Add 'guix/scripts/home/edit.scm'. * doc/guix.texi (Invoking guix home): Document it.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 42651d87f5..ecdf2041eb 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -39452,6 +39452,19 @@ guix home container config.scm -- herd status
The command to run in the container must come after @code{--} (double
hyphen).
+@cindex service type definition, editing
+@cindex editing, service type definition
+@item edit
+Edit or view the definition of the given Home service types.
+
+For example, the command below opens your editor, as specified by the
+@env{EDITOR} environment variable, on the definition of the
+@code{home-mcron} service type:
+
+@example
+guix home edit home-mcron
+@end example
+
@item reconfigure
Build the home environment described in @var{file}, and switch to it.
Switching means that the activation script will be evaluated and (in