Using powerline now, so colourprompt is obsolete
Refactor spec file
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
|
||||
*.rpm
|
||||
@@ -1,17 +0,0 @@
|
||||
if [ "$PS1" ]; then
|
||||
if [ "$BASH" ]; then
|
||||
if [ "`id -u`" -eq 0 ]; then
|
||||
PS1='\[\033[01;31m\]\u\[\033[34m\]@\h\[\033[00m\] \[\033[01;35m\]\W\[\033[00m\] # '
|
||||
else
|
||||
PS1='\[\033[01;32m\]\u\[\033[34m\]@\h\[\033[00m\] \[\033[01;35m\]\W\[\033[00m\] \\$ '
|
||||
fi
|
||||
else
|
||||
if [ "`id -u`" -eq 0 ]; then
|
||||
PS1='# '
|
||||
else
|
||||
PS1='$ '
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@ Release: %autorelease
|
||||
Summary: Bash profile customisations
|
||||
|
||||
License: GPL3
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source0: bash-completion-ignore-case.sh
|
||||
Source1: less-syntax-highlight.sh
|
||||
|
||||
Requires: bash
|
||||
|
||||
@@ -14,16 +15,16 @@ BuildArch: noarch
|
||||
Some bash customizations
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
cp %{SOURCE0} bash-completion-ignore-case.sh
|
||||
cp %{SOURCE1} less-syntax-highlight.sh
|
||||
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||
install -p -m 755 -t %{buildroot}%{_sysconfdir}/profile.d *
|
||||
|
||||
install -p -m 755 -t %{buildroot}%{_sysconfdir}/profile.d bash-completion-ignore-case.sh
|
||||
install -p -m 755 -t %{buildroot}%{_sysconfdir}/profile.d less-syntax-highlight.sh
|
||||
|
||||
%files
|
||||
%{_sysconfdir}/profile.d
|
||||
|
||||
Reference in New Issue
Block a user