equal
deleted
inserted
replaced
130 |
130 |
131 ################################################################ |
131 ################################################################ |
132 # Completion. |
132 # Completion. |
133 |
133 |
134 # Use system wide completion, if available. |
134 # Use system wide completion, if available. |
135 if [ -f /etc/bash_completion ]; then |
135 if [[ -f /etc/bash_completion ]]; then |
136 # Under Cygwin bash completition take a long time for starting. |
136 # Under Cygwin bash completition take a long time for starting. |
137 if [ ! "$OSTYPE" = cygwin ]; then |
137 if [[ ! $OSTYPE = cygwin ]]; then |
138 . /etc/bash_completion |
138 . /etc/bash_completion |
139 fi |
139 fi |
140 elif [ -f $HOME/usr/etc/bash_completion ]; then |
140 elif [[ -f ~/usr/etc/bash_completion ]]; then |
141 . $HOME/usr/etc/bash_completion |
141 . ~/usr/etc/bash_completion |
142 fi |
142 fi |
143 # Load local completions. |
143 # Load local completions. |
144 if [ -f ~/.bash_completion ]; then |
144 if [[ -f ~/.bash_completion ]]; then |
145 . ~/.bash_completion |
145 . ~/.bash_completion |
146 fi |
146 fi |
147 if [ -d ~/.bash_completion.d ]; then |
147 if [[ -d ~/.bash_completion.d ]]; then |
148 for f in ~/.bash_completion.d/* ~/.bash_completion.d/.*; do |
148 for f in ~/.bash_completion.d/* ~/.bash_completion.d/.*; do |
149 . $f |
149 . $f |
150 done |
150 done |
151 fi |
151 fi |
152 |
152 |