Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 9e40a91cad134751db880f12e2c056ae > files > 2

colorprompt-0.1-2mdv2010.0.src.rpm

%define name colorprompt
%define version 0.1
%define release %mkrel 2
%define profilefile 92user-color.sh

Summary: Make the user prompt in bash different colors depending on your user
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{profilefile}
License: BSD
Group: Shells
Url: http://colin.guthr.ie/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch

%description
A little bash profile extension to color your user prompt appropriately.
It will make regular logins green and root logins red.

%prep

%build

%install
rm -rf %{buildroot}
install -D -m 0644 %SOURCE0 %{buildroot}%{_sysconfdir}/profile.d/%{profilefile}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_sysconfdir}/profile.d/%{profilefile}


%changelog
* Mon Jun 01 2009 Gustavo De Nardin <gustavodn@mandriva.com> 0.1-2mdv2010.0
+ Revision: 381775
- don't spawn a subshell for the test
- quote $colorregex, so it is not subject to be expanded to nothing by bash,
  when shopt nullglob is on
- make grep quiet and redirect stderr to null

* Wed May 27 2009 Colin Guthrie <cguthrie@mandriva.org> 0.1-1mdv2010.0
+ Revision: 380164
- import colorprompt