home: services: Fix bash aliases without guix-defaults.
* gnu/home/services/shells.scm: Fix bash aliases not being added if guix-defaults? was #f. Also fix inaccuracy in documentation about placement of defaults. * doc/guix.texi (Shells Home Services): Adjust accordingly. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
09c7eeb659
commit
3a91c92547
2 changed files with 3 additions and 3 deletions
|
@ -38349,7 +38349,7 @@ The Bash package to use.
|
||||||
|
|
||||||
@item @code{guix-defaults?} (default: @code{#t}) (type: boolean)
|
@item @code{guix-defaults?} (default: @code{#t}) (type: boolean)
|
||||||
Add sane defaults like reading @file{/etc/bashrc} and coloring the output of
|
Add sane defaults like reading @file{/etc/bashrc} and coloring the output of
|
||||||
@command{ls} to the end of the @file{.bashrc} file.
|
@command{ls} to the top of the @file{.bashrc} file.
|
||||||
|
|
||||||
@item @code{environment-variables} (default: @code{()}) (type: alist)
|
@item @code{environment-variables} (default: @code{()}) (type: alist)
|
||||||
Association list of environment variables to set for the Bash session. The
|
Association list of environment variables to set for the Bash session. The
|
||||||
|
|
|
@ -324,7 +324,7 @@ source ~/.profile
|
||||||
(guix-defaults?
|
(guix-defaults?
|
||||||
(boolean #t)
|
(boolean #t)
|
||||||
"Add sane defaults like reading @file{/etc/bashrc} and coloring the output of
|
"Add sane defaults like reading @file{/etc/bashrc} and coloring the output of
|
||||||
@command{ls} to the end of the @file{.bashrc} file.")
|
@command{ls} to the top of the @file{.bashrc} file.")
|
||||||
(environment-variables
|
(environment-variables
|
||||||
(alist '())
|
(alist '())
|
||||||
"Association list of environment variables to set for the Bash session. The
|
"Association list of environment variables to set for the Bash session. The
|
||||||
|
@ -448,7 +448,7 @@ if [ -f ~/.bashrc ]; then source ~/.bashrc; fi
|
||||||
'bashrc
|
'bashrc
|
||||||
(if (home-bash-configuration-guix-defaults? config)
|
(if (home-bash-configuration-guix-defaults? config)
|
||||||
(list (serialize-field 'aliases) guix-bashrc)
|
(list (serialize-field 'aliases) guix-bashrc)
|
||||||
(list (serialize-field 'alises))))
|
(list (serialize-field 'aliases))))
|
||||||
(file-if-not-empty 'bash-logout)))))
|
(file-if-not-empty 'bash-logout)))))
|
||||||
|
|
||||||
(define (add-bash-packages config)
|
(define (add-bash-packages config)
|
||||||
|
|
Reference in a new issue