summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-07-04 21:52:23 +0200
committerLudovic Courtès <ludo@gnu.org>2018-07-04 21:52:23 +0200
commit9fd877247de6efec3aec53e93db5323a97d7b05e (patch)
tree9f43c94cf824e226cdfe397da22b6ffa8a156a5b
parent42226063f6885f2114bf6d81fede1896d484c3d1 (diff)
downloadguix-9fd877247de6efec3aec53e93db5323a97d7b05e.tar.gz
system: Default .bashrc uses '--color=auto' for grep and ls.
Reported by Tobias Geerinckx-Rice <me@tobias.gr>
and Björn Höfling <bjoern.hoefling@bjoernhoefling.de>.

* gnu/system/shadow.scm (default-skeletons)["bashrc"]: Use
'--color=auto' instead of '--color'.
-rw-r--r--gnu/system/shadow.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 28d399f2b1..b4db69f068 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -178,9 +178,9 @@ then
 else
     PS1='\\u@\\h \\w\\$ '
 fi
-alias ls='ls -p --color'
+alias ls='ls -p --color=auto'
 alias ll='ls -l'
-alias grep='grep --color'\n"))
+alias grep='grep --color=auto'\n"))
         (zlogin    (plain-file "zlogin" "\
 # Honor system-wide environment variables
 source /etc/profile\n"))