home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / profile.d / bash_completion.sh next >
Encoding:
Text File  |  2010-11-16  |  454 b   |  13 lines

  1. # Check for interactive bash and that we haven't already been sourced.
  2. [ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION" ] && return
  3.  
  4. # Check for recent enough version of bash.
  5. bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
  6. if [ $bmajor -gt 3 ] || [ $bmajor -eq 3 -a $bminor -ge 2 ]; then
  7.     if [ -r /etc/bash_completion ]; then
  8.         # Source completion code.
  9.         . /etc/bash_completion
  10.     fi
  11. fi
  12. unset bash bmajor bminor
  13.