Add powerline init script
Build and provide rpm of demus profiles / rpmbuild (release) Successful in 51s

This commit is contained in:
2025-02-18 14:03:10 +01:00
parent 9b420c0e31
commit 0d145a4f9a
2 changed files with 11 additions and 2 deletions
+4 -2
View File
@@ -1,5 +1,5 @@
Name: demus-profile-scripts
Version: 0.4.4
Version: 0.5.0
Release: %autorelease
Summary: Bash profile customisations
@@ -8,8 +8,9 @@ Source0: bash-completion.sh
Source1: less-syntax-highlight.sh
Source2: lowdown-term.sh
Source3: cd-dot-dot.sh
Source4: z_powerline.sh
Requires: bash
Requires: bash powerline
BuildArch: noarch
@@ -26,6 +27,7 @@ install -p -m 644 -t %{buildroot}%{_sysconfdir}/profile.d %{SOURCE0}
install -p -m 644 -t %{buildroot}%{_sysconfdir}/profile.d %{SOURCE1}
install -p -m 644 -t %{buildroot}%{_sysconfdir}/profile.d %{SOURCE2}
install -p -m 644 -t %{buildroot}%{_sysconfdir}/profile.d %{SOURCE3}
install -p -m 644 -t %{buildroot}%{_sysconfdir}/profile.d %{SOURCE4}
%files
%{_sysconfdir}/profile.d/*
+7
View File
@@ -0,0 +1,7 @@
# Only start in interactive shells and when the daemon binary exists
if [ "x${PS1-}" != x -a -f $(which powerline-daemon) ]; then
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/powerline/bash/powerline.sh
fi