Enable bash_completion for Cygwin because new bash version support delayed
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 18 May 2016 16:49:25 +0300
changeset 795 6e8756ef4fdd
parent 794 62c7121c2f88
child 796 b68f2e489229
Enable bash_completion for Cygwin because new bash version support delayed loading and performance is no longer an issue!
.bashrc
--- 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