SHA256
1
0
forked from pool/fzf

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:
Matej Cepl 2024-04-24 13:59:40 +00:00 committed by Git OBS Bridge
parent 5c1b1ece73
commit 5f9a9adadd

View File

@ -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