# HG changeset patch # User Oleksandr Gavenko # Date 1319587102 -10800 # Node ID 62bea4f801601bff0367762bf31d90b8ba7bdb00 # Parent 8f3d4826aec27ac25b902351657cb2a7d47065ea Take more priority for 'bash_completion' instead my completion. diff -r 8f3d4826aec2 -r 62bea4f80160 .bashrc --- 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