.bashrc
changeset 240 62bea4f80160
parent 239 8f3d4826aec2
child 241 e1e0eeee8d51
--- a/.bashrc	Wed Oct 26 00:47:17 2011 +0300
+++ b/.bashrc	Wed Oct 26 02:58:22 2011 +0300
@@ -118,22 +118,6 @@
 # canonicalize path (including resolving symlinks)
 # alias realpath='readlink -f'
 
-# Use bash-completion, if available.
-if [ -f /etc/bash_completion ]; then
-  # Under Cygwin bash completition start a long time.
-  if [ ! "$OSTYPE" = cygwin ]; then
-    . /etc/bash_completion
-  else
-    # But load local completion anyway.
-    if [ -f ~/.bash_completion ]; then
-      . ~/.bash_completion
-    fi
-  fi
-fi
-if [ -f $HOME/usr/etc/bash_completion ]; then
-  . $HOME/usr/etc/bash_completion
-fi
-
 # Special case for CYGWIN to properly display russian letters in rxvt.
 # Don't forget set in Windows SHELL=/bin/bash. If default SHELL is sh then .bashrc will not be read.
 if [ -n "$COMSPEC" ]; then
@@ -224,3 +208,18 @@
 }
 complete -F _pathsearch -o nospace pathsearch
 
+# Use bash-completion, if available.
+if [ -f /etc/bash_completion ]; then
+  # Under Cygwin bash completition start a long time.
+  if [ ! "$OSTYPE" = cygwin ]; then
+    . /etc/bash_completion
+  else
+    # But load local completion anyway.
+    if [ -f ~/.bash_completion ]; then
+      . ~/.bash_completion
+    fi
+  fi
+fi
+if [ -f $HOME/usr/etc/bash_completion ]; then
+  . $HOME/usr/etc/bash_completion
+fi