Add powerline init script
Build and provide rpm of demus profiles / rpmbuild (release) Successful in 51s
Build and provide rpm of demus profiles / rpmbuild (release) Successful in 51s
This commit is contained in:
@@ -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/*
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user