Changeset 5c3f3856 for postlfs/config/profile.xml
- Timestamp:
- 12/02/2018 02:50:58 AM (5 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/config/profile.xml
r49cbcfe r5c3f3856 68 68 as an unprivileged user.</para> 69 69 </note> 70 71 <para condition="html" role="usernotes">User Notes: 72 <ulink url="&blfs-wiki;/bash-shell-startup-files"/></para> 70 73 71 74 <sect2 id="etc-profile-profile"> … … 198 201 # Import bash completion scripts 199 202 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 204 if [ -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" ] && \ 213 . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" 214 if shopt -q progcomp && [ -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 221 else 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 231 fi 232 205 233 # End /etc/profile.d/bash_completion.sh</literal> 206 234 EOF</userinput></screen> 207 208 235 <para>Make sure that the directory exists:</para> 209 236 210 237 <screen role="root"><userinput>install --directory --mode=0755 --owner=root --group=root /etc/bash_completion.d</userinput></screen> 211 238 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> 215 243 216 244 <sect3 id="etc-profile.d-dircolors.sh">
Note:
See TracChangeset
for help on using the changeset viewer.