.bashrc
changeset 795 6e8756ef4fdd
parent 788 788f345a3dfe
child 799 c85ac0f4c0f5
--- 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