Don't force colour in aliases.

* gnu/system/shadow.scm (default-skeletons): Substitute ‘--color=auto’
for ‘--color’ (which implies ‘=always’) in aliases.
* doc/guix.texi (G-Expressions): Also adjust examples as that makes
more sense.
This commit is contained in:
Tobias Geerinckx-Rice 2018-07-04 19:13:49 +02:00
parent 1e6191bb55
commit 142869f80f
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
2 changed files with 3 additions and 3 deletions

View File

@ -5464,7 +5464,7 @@ denoting the target file. Here's an example:
`(("hosts" ,(plain-file "hosts" `(("hosts" ,(plain-file "hosts"
"127.0.0.1 localhost")) "127.0.0.1 localhost"))
("bashrc" ,(plain-file "bashrc" ("bashrc" ,(plain-file "bashrc"
"alias ls='ls --color'")))) "alias ls='ls --color=auto'"))))
@end example @end example
This yields an @code{etc} directory containing these two files. This yields an @code{etc} directory containing these two files.

View File

@ -178,9 +178,9 @@ then
else else
PS1='\\u@\\h \\w\\$ ' PS1='\\u@\\h \\w\\$ '
fi fi
alias ls='ls -p --color' alias ls='ls -p --color=auto'
alias ll='ls -l' alias ll='ls -l'
alias grep='grep --color'\n")) alias grep='grep --color=auto'\n"))
(zlogin (plain-file "zlogin" "\ (zlogin (plain-file "zlogin" "\
# Honor system-wide environment variables # Honor system-wide environment variables
source /etc/profile\n")) source /etc/profile\n"))