home: services: shells: Fix documentation about file-like objects.
* gnu/home/services/shells.scm: (home-shell-profile-configuration, home-shell-profile-service-type, home-zsh-configuration, home-zsh-extension, home-bash-configuration, home-bash-extension, home-fish-configuration, home-fish-extension): Replace 'strings or gexps' with 'file-like objects' in the documentation. * doc/guix.texi (Shells Home Services): Same.
This commit is contained in:
parent
34b0aa16e7
commit
ff20d3928d
2 changed files with 29 additions and 29 deletions
|
@ -35700,7 +35700,7 @@ Available @code{home-shell-profile-configuration} fields are:
|
||||||
@item @code{profile} (default: @code{()}) (type: text-config)
|
@item @code{profile} (default: @code{()}) (type: text-config)
|
||||||
@code{home-shell-profile} is instantiated automatically by
|
@code{home-shell-profile} is instantiated automatically by
|
||||||
@code{home-environment}, DO NOT create this service manually, it can
|
@code{home-environment}, DO NOT create this service manually, it can
|
||||||
only be extended. @code{profile} is a list of strings or gexps, which
|
only be extended. @code{profile} is a list of file-like objects, which
|
||||||
will go to @file{~/.profile}. By default @file{~/.profile} contains the
|
will go to @file{~/.profile}. By default @file{~/.profile} contains the
|
||||||
initialization code, which have to be evaluated by login shell to make
|
initialization code, which have to be evaluated by login shell to make
|
||||||
home-environment's profile avaliable to the user, but other commands can
|
home-environment's profile avaliable to the user, but other commands can
|
||||||
|
@ -35729,19 +35729,19 @@ Add sane defaults like reading @file{/etc/bashrc}, coloring output for
|
||||||
Association list of environment variables to set for the Bash session.
|
Association list of environment variables to set for the Bash session.
|
||||||
|
|
||||||
@item @code{bash-profile} (default: @code{()}) (type: text-config)
|
@item @code{bash-profile} (default: @code{()}) (type: text-config)
|
||||||
List of strings or gexps, which will be added to @file{.bash_profile}.
|
List of file-like objects, which will be added to @file{.bash_profile}.
|
||||||
Used for executing user's commands at start of login shell (In most
|
Used for executing user's commands at start of login shell (In most
|
||||||
cases the shell started on tty just after login). @file{.bash_login}
|
cases the shell started on tty just after login). @file{.bash_login}
|
||||||
won't be ever read, because @file{.bash_profile} always present.
|
won't be ever read, because @file{.bash_profile} always present.
|
||||||
|
|
||||||
@item @code{bashrc} (default: @code{()}) (type: text-config)
|
@item @code{bashrc} (default: @code{()}) (type: text-config)
|
||||||
List of strings or gexps, which will be added to @file{.bashrc}. Used
|
List of file-like objects, which will be added to @file{.bashrc}. Used
|
||||||
for executing user's commands at start of interactive shell (The shell
|
for executing user's commands at start of interactive shell (The shell
|
||||||
for interactive usage started by typing @code{bash} or by terminal app
|
for interactive usage started by typing @code{bash} or by terminal app
|
||||||
or any other program).
|
or any other program).
|
||||||
|
|
||||||
@item @code{bash-logout} (default: @code{()}) (type: text-config)
|
@item @code{bash-logout} (default: @code{()}) (type: text-config)
|
||||||
List of strings or gexps, which will be added to @file{.bash_logout}.
|
List of file-like objects, which will be added to @file{.bash_logout}.
|
||||||
Used for executing user's commands at the exit of login shell. It won't
|
Used for executing user's commands at the exit of login shell. It won't
|
||||||
be read in some cases (if the shell terminates by exec'ing another
|
be read in some cases (if the shell terminates by exec'ing another
|
||||||
process for example).
|
process for example).
|
||||||
|
@ -35769,30 +35769,30 @@ Shell startup process will continue with
|
||||||
Association list of environment variables to set for the Zsh session.
|
Association list of environment variables to set for the Zsh session.
|
||||||
|
|
||||||
@item @code{zshenv} (default: @code{()}) (type: text-config)
|
@item @code{zshenv} (default: @code{()}) (type: text-config)
|
||||||
List of strings or gexps, which will be added to @file{.zshenv}. Used
|
List of file-like objects, which will be added to @file{.zshenv}. Used
|
||||||
for setting user's shell environment variables. Must not contain
|
for setting user's shell environment variables. Must not contain
|
||||||
commands assuming the presence of tty or producing output. Will be read
|
commands assuming the presence of tty or producing output. Will be read
|
||||||
always. Will be read before any other file in @env{ZDOTDIR}.
|
always. Will be read before any other file in @env{ZDOTDIR}.
|
||||||
|
|
||||||
@item @code{zprofile} (default: @code{()}) (type: text-config)
|
@item @code{zprofile} (default: @code{()}) (type: text-config)
|
||||||
List of strings or gexps, which will be added to @file{.zprofile}. Used
|
List of file-like objects, which will be added to @file{.zprofile}. Used
|
||||||
for executing user's commands at start of login shell (In most cases the
|
for executing user's commands at start of login shell (In most cases the
|
||||||
shell started on tty just after login). Will be read before
|
shell started on tty just after login). Will be read before
|
||||||
@file{.zlogin}.
|
@file{.zlogin}.
|
||||||
|
|
||||||
@item @code{zshrc} (default: @code{()}) (type: text-config)
|
@item @code{zshrc} (default: @code{()}) (type: text-config)
|
||||||
List of strings or gexps, which will be added to @file{.zshrc}. Used
|
List of file-like objects, which will be added to @file{.zshrc}. Used
|
||||||
for executing user's commands at start of interactive shell (The shell
|
for executing user's commands at start of interactive shell (The shell
|
||||||
for interactive usage started by typing @code{zsh} or by terminal app or
|
for interactive usage started by typing @code{zsh} or by terminal app or
|
||||||
any other program).
|
any other program).
|
||||||
|
|
||||||
@item @code{zlogin} (default: @code{()}) (type: text-config)
|
@item @code{zlogin} (default: @code{()}) (type: text-config)
|
||||||
List of strings or gexps, which will be added to @file{.zlogin}. Used
|
List of file-like objects, which will be added to @file{.zlogin}. Used
|
||||||
for executing user's commands at the end of starting process of login
|
for executing user's commands at the end of starting process of login
|
||||||
shell.
|
shell.
|
||||||
|
|
||||||
@item @code{zlogout} (default: @code{()}) (type: text-config)
|
@item @code{zlogout} (default: @code{()}) (type: text-config)
|
||||||
List of strings or gexps, which will be added to @file{.zlogout}. Used
|
List of file-like objects, which will be added to @file{.zlogout}. Used
|
||||||
for executing user's commands at the exit of login shell. It won't be
|
for executing user's commands at the exit of login shell. It won't be
|
||||||
read in some cases (if the shell terminates by exec'ing another process
|
read in some cases (if the shell terminates by exec'ing another process
|
||||||
for example).
|
for example).
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
@code{home-environment}, DO NOT create this service manually, it can
|
@code{home-environment}, DO NOT create this service manually, it can
|
||||||
only be extended.
|
only be extended.
|
||||||
|
|
||||||
@code{profile} is a list of strings or gexps, which will go to
|
@code{profile} is a list of file-like objects, which will go to
|
||||||
@file{~/.profile}. By default @file{~/.profile} contains the
|
@file{~/.profile}. By default @file{~/.profile} contains the
|
||||||
initialization code, which have to be evaluated by login shell to make
|
initialization code, which have to be evaluated by login shell to make
|
||||||
home-environment's profile avaliable to the user, but other commands
|
home-environment's profile avaliable to the user, but other commands
|
||||||
|
@ -107,7 +107,7 @@ $HOME_ENVIRONMENT/on-first-login\n"
|
||||||
(default-value (home-shell-profile-configuration))
|
(default-value (home-shell-profile-configuration))
|
||||||
(description "Create @file{~/.profile}, which is used
|
(description "Create @file{~/.profile}, which is used
|
||||||
for environment initialization of POSIX compliant login shells. This
|
for environment initialization of POSIX compliant login shells. This
|
||||||
service type can be extended with a list of strings or gexps.")))
|
service type can be extended with a list of file-like objects.")))
|
||||||
|
|
||||||
(define (serialize-boolean field-name val) "")
|
(define (serialize-boolean field-name val) "")
|
||||||
(define (serialize-posix-env-vars field-name val)
|
(define (serialize-posix-env-vars field-name val)
|
||||||
|
@ -143,30 +143,30 @@ Shell startup process will continue with
|
||||||
serialize-posix-env-vars)
|
serialize-posix-env-vars)
|
||||||
(zshenv
|
(zshenv
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps, which will be added to @file{.zshenv}.
|
"List of file-like objects, which will be added to @file{.zshenv}.
|
||||||
Used for setting user's shell environment variables. Must not contain
|
Used for setting user's shell environment variables. Must not contain
|
||||||
commands assuming the presence of tty or producing output. Will be
|
commands assuming the presence of tty or producing output. Will be
|
||||||
read always. Will be read before any other file in @env{ZDOTDIR}.")
|
read always. Will be read before any other file in @env{ZDOTDIR}.")
|
||||||
(zprofile
|
(zprofile
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps, which will be added to @file{.zprofile}.
|
"List of file-like objects, which will be added to @file{.zprofile}.
|
||||||
Used for executing user's commands at start of login shell (In most
|
Used for executing user's commands at start of login shell (In most
|
||||||
cases the shell started on tty just after login). Will be read before
|
cases the shell started on tty just after login). Will be read before
|
||||||
@file{.zlogin}.")
|
@file{.zlogin}.")
|
||||||
(zshrc
|
(zshrc
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps, which will be added to @file{.zshrc}.
|
"List of file-like objects, which will be added to @file{.zshrc}.
|
||||||
Used for executing user's commands at start of interactive shell (The
|
Used for executing user's commands at start of interactive shell (The
|
||||||
shell for interactive usage started by typing @code{zsh} or by
|
shell for interactive usage started by typing @code{zsh} or by
|
||||||
terminal app or any other program).")
|
terminal app or any other program).")
|
||||||
(zlogin
|
(zlogin
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps, which will be added to @file{.zlogin}.
|
"List of file-like objects, which will be added to @file{.zlogin}.
|
||||||
Used for executing user's commands at the end of starting process of
|
Used for executing user's commands at the end of starting process of
|
||||||
login shell.")
|
login shell.")
|
||||||
(zlogout
|
(zlogout
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps, which will be added to @file{.zlogout}.
|
"List of file-like objects, which will be added to @file{.zlogout}.
|
||||||
Used for executing user's commands at the exit of login shell. It
|
Used for executing user's commands at the exit of login shell. It
|
||||||
won't be read in some cases (if the shell terminates by exec'ing
|
won't be read in some cases (if the shell terminates by exec'ing
|
||||||
another process for example)."))
|
another process for example)."))
|
||||||
|
@ -244,19 +244,19 @@ source ~/.profile
|
||||||
"Association list of environment variables to set.")
|
"Association list of environment variables to set.")
|
||||||
(zshrc
|
(zshrc
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps.")
|
"List of file-like objects.")
|
||||||
(zshenv
|
(zshenv
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps.")
|
"List of file-like objects.")
|
||||||
(zprofile
|
(zprofile
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps.")
|
"List of file-like objects.")
|
||||||
(zlogin
|
(zlogin
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps.")
|
"List of file-like objects.")
|
||||||
(zlogout
|
(zlogout
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps."))
|
"List of file-like objects."))
|
||||||
|
|
||||||
(define (home-zsh-extensions original-config extension-configs)
|
(define (home-zsh-extensions original-config extension-configs)
|
||||||
(home-zsh-configuration
|
(home-zsh-configuration
|
||||||
|
@ -319,19 +319,19 @@ for @code{ls} provided by guix to @file{.bashrc}.")
|
||||||
serialize-posix-env-vars)
|
serialize-posix-env-vars)
|
||||||
(bash-profile
|
(bash-profile
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps, which will be added to @file{.bash_profile}.
|
"List of file-like objects, which will be added to @file{.bash_profile}.
|
||||||
Used for executing user's commands at start of login shell (In most
|
Used for executing user's commands at start of login shell (In most
|
||||||
cases the shell started on tty just after login). @file{.bash_login}
|
cases the shell started on tty just after login). @file{.bash_login}
|
||||||
won't be ever read, because @file{.bash_profile} always present.")
|
won't be ever read, because @file{.bash_profile} always present.")
|
||||||
(bashrc
|
(bashrc
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps, which will be added to @file{.bashrc}.
|
"List of file-like objects, which will be added to @file{.bashrc}.
|
||||||
Used for executing user's commands at start of interactive shell (The
|
Used for executing user's commands at start of interactive shell (The
|
||||||
shell for interactive usage started by typing @code{bash} or by
|
shell for interactive usage started by typing @code{bash} or by
|
||||||
terminal app or any other program).")
|
terminal app or any other program).")
|
||||||
(bash-logout
|
(bash-logout
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps, which will be added to @file{.bash_logout}.
|
"List of file-like objects, which will be added to @file{.bash_logout}.
|
||||||
Used for executing user's commands at the exit of login shell. It
|
Used for executing user's commands at the exit of login shell. It
|
||||||
won't be read in some cases (if the shell terminates by exec'ing
|
won't be read in some cases (if the shell terminates by exec'ing
|
||||||
another process for example)."))
|
another process for example)."))
|
||||||
|
@ -426,13 +426,13 @@ if [ -f ~/.bashrc ]; then source ~/.bashrc; fi
|
||||||
"Association list of environment variables to set.")
|
"Association list of environment variables to set.")
|
||||||
(bash-profile
|
(bash-profile
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps.")
|
"List of file-like objects.")
|
||||||
(bashrc
|
(bashrc
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps.")
|
"List of file-like objects.")
|
||||||
(bash-logout
|
(bash-logout
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps."))
|
"List of file-like objects."))
|
||||||
|
|
||||||
(define (home-bash-extensions original-config extension-configs)
|
(define (home-bash-extensions original-config extension-configs)
|
||||||
(home-bash-configuration
|
(home-bash-configuration
|
||||||
|
@ -506,7 +506,7 @@ if [ -f ~/.bashrc ]; then source ~/.bashrc; fi
|
||||||
"The Fish package to use.")
|
"The Fish package to use.")
|
||||||
(config
|
(config
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps, which will be added to
|
"List of file-like objects, which will be added to
|
||||||
@file{$XDG_CONFIG_HOME/fish/config.fish}.")
|
@file{$XDG_CONFIG_HOME/fish/config.fish}.")
|
||||||
(environment-variables
|
(environment-variables
|
||||||
(alist '())
|
(alist '())
|
||||||
|
@ -553,7 +553,7 @@ end\n\n")
|
||||||
(define-configuration/no-serialization home-fish-extension
|
(define-configuration/no-serialization home-fish-extension
|
||||||
(config
|
(config
|
||||||
(text-config '())
|
(text-config '())
|
||||||
"List of strings or gexps for extending the Fish initialization file.")
|
"List of file-like objects for extending the Fish initialization file.")
|
||||||
(environment-variables
|
(environment-variables
|
||||||
(alist '())
|
(alist '())
|
||||||
"Association list of environment variables to set.")
|
"Association list of environment variables to set.")
|
||||||
|
|
Reference in a new issue