Using powerline now, so colourprompt is obsolete

Refactor spec file
This commit is contained in:
2025-02-10 21:30:03 +01:00
parent c53009b8b3
commit a91c09d842
3 changed files with 8 additions and 22 deletions
+2
View File
@@ -0,0 +1,2 @@
*.rpm
-17
View File
@@ -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
+6 -5
View File
@@ -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