pastebin - collaborative debugging tool
kpaste.net RSS


bash_completion.sh 14.04
Posted by Anonymous on Sat 14th Mar 2015 20:12
raw | new post
modification of post by Anonymous (view diff)

  1. ## /etc/profile.d/bash_completion.sh as it is in Ubuntu 14.04
  2. # Check for interactive bash and that we haven't already been sourced.
  3. if [ -n "$BASH_VERSION" -a -n "$PS1" -a -z "$BASH_COMPLETION_COMPAT_DIR" ]; then
  4.  
  5. # Check for recent enough version of bash.
  6. bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
  7. if [ $bmajor -gt 4 ] || [ $bmajor -eq 4 -a $bminor -ge 1 ]; then
  8.     [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && \
  9.         . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion"
  10.     if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then
  11.         # Source completion code.
  12.         . /usr/share/bash-completion/bash_completion
  13.     fi  
  14. fi
  15. unset bash bmajor bminor
  16.  
  17. fi

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at