Ignore:
Timestamp:
12/02/2018 02:50:58 AM (5 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.4, 9.0, 9.1, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
03b278dc
Parents:
49cbcfe
Message:

Update to make-ca-1.0. Fixes #11401.
Use configuration from bash-completions package if it is installed. Added bash-completion-2.8 to ghe BLFS wiki and linked from profile page. Fixes #11399.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20770 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/profile.xml

    r49cbcfe r5c3f3856  
    6868    as an unprivileged user.</para>
    6969  </note>
     70
     71    <para condition="html" role="usernotes">User Notes:
     72    <ulink url="&blfs-wiki;/bash-shell-startup-files"/></para>
    7073
    7174  <sect2 id="etc-profile-profile">
     
    198201# Import bash completion scripts
    199202
    200 for script in /etc/bash_completion.d/*.sh ; do
    201         if [ -r $script ] ; then
    202                 . $script
    203         fi
    204 done
     203# If the bash-completion package is installed, use its configuration instead
     204if [ -f /usr/share/bash-completion/bash_completion ]; then
     205
     206  # Check for interactive bash and that we haven't already been sourced.
     207  if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_VERSINFO-}" ]; then
     208
     209    # Check for recent enough version of bash.
     210    if [ ${BASH_VERSINFO[0]} -gt 4 ] || \
     211       [ ${BASH_VERSINFO[0]} -eq 4 -a ${BASH_VERSINFO[1]} -ge 1 ]; then
     212       [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] &amp;&amp; \
     213            . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion"
     214       if shopt -q progcomp &amp;&amp; [ -r /usr/share/bash-completion/bash_completion ]; then
     215          # Source completion code.
     216          . /usr/share/bash-completion/bash_completion
     217       fi
     218    fi
     219  fi
     220
     221else
     222
     223  # bash-completions are not installed, use only bash completion directory
     224  if shopt -q progcomp; then
     225    for script in /etc/bash_completion.d/* ; do
     226      if [ -r $script ] ; then
     227        . $script
     228      fi
     229    done
     230  fi
     231fi
     232
    205233# End /etc/profile.d/bash_completion.sh</literal>
    206234EOF</userinput></screen>
    207 
    208235      <para>Make sure that the directory exists:</para>
    209236
    210237<screen role="root"><userinput>install --directory --mode=0755 --owner=root --group=root /etc/bash_completion.d</userinput></screen>
    211238
    212     </sect3>
    213 
    214 
     239      <para>For a more complete installation, see
     240      <ulink url="&blfs-wiki;/bash-shell-startup-files#bash-completions"/>.</para>
     241
     242    </sect3>
    215243
    216244    <sect3 id="etc-profile.d-dircolors.sh">
Note: See TracChangeset for help on using the changeset viewer.