Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
aaa_base.21647
git-32-0ee79834ea9ebf6573a7b903f374c21e53a56c14...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File git-32-0ee79834ea9ebf6573a7b903f374c21e53a56c14.patch of Package aaa_base.21647
From 0ee79834ea9ebf6573a7b903f374c21e53a56c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Oertel?= <ro@suse.de> Date: Wed, 9 Sep 2020 16:55:48 +0200 Subject: [PATCH] alias.bash check if ip command knows color=auto (jsc#SLE-7679) diff --git a/files/etc/profile.d/alias.bash b/files/etc/profile.d/alias.bash index 25072cc..b5599e2 100644 --- a/files/etc/profile.d/alias.bash +++ b/files/etc/profile.d/alias.bash @@ -27,7 +27,9 @@ alias rd=rmdir alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' -alias ip='ip --color=auto' +if ip --color=auto -V > /dev/null 2>/dev/null ; then + alias ip='ip --color=auto' +fi alias md='mkdir -p' if test "$is" = "bash" -a ! -x /bin/which -a ! -x /usr/bin/which ; then #
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor