Enable bash_completion for Cygwin because new bash version support delayed
loading and performance is no longer an issue!
--- a/.bashrc Mon Apr 18 12:19:35 2016 +0300
+++ b/.bashrc Wed May 18 16:49:25 2016 +0300
@@ -177,13 +177,13 @@
################################################################
# Completion.
-# Use system wide completion, if available.
if [[ -f /etc/bash_completion ]]; then
- # Under Cygwin bash completition take a long time for starting.
- if [[ ! $OSTYPE = cygwin ]]; then
- . /etc/bash_completion
- complete -F _quilt_completion dquilt
- fi
+ # in Debian
+ . /etc/bash_completion
+ complete -F _quilt_completion dquilt
+elif [[ -f /usr/share/bash-completion/bash_completion ]]; then
+ # in Cygwin
+ . /usr/share/bash-completion/bash_completion
elif [[ -f ~/usr/etc/bash_completion ]]; then
. ~/usr/etc/bash_completion
fi