Fix the generation of /etc/profile.d/fzf-bash.sh
OBS-URL: https://build.opensuse.org/package/show/utilities/fzf?expand=0&rev=112
This commit is contained in:
parent
5c1b1ece73
commit
5f9a9adadd
2
fzf.spec
2
fzf.spec
@ -133,7 +133,7 @@ mkdir -p %{buildroot}%{_datadir}/fzf
|
||||
cp -p -r shell/ %{buildroot}%{_datadir}/fzf
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||
echo 'if [[ ${BASH_VERSION-} ]]; then eval "$(fzf --bash)"; fi' > \
|
||||
echo 'if [ "${BASH_VERSION-}" ] && [[ $- == *i* ]]; then eval "$(fzf --bash 2>/dev/null)"; fi' > \
|
||||
%{buildroot}%{_sysconfdir}/profile.d/fzf-bash.sh
|
||||
install -Dm0644 shell/completion.zsh \
|
||||
%{buildroot}%{_sysconfdir}/zsh_completion.d/fzf-key-bindings
|
||||
|
Loading…
Reference in New Issue
Block a user