Use bash-completion, if available.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 17 Mar 2010 00:14:32 +0200
changeset 44 e4703f904e4b
parent 43 6c53a61678d7
child 45 5c94d2613433
Use bash-completion, if available.
.bashrc
--- a/.bashrc	Wed Mar 17 00:05:13 2010 +0200
+++ b/.bashrc	Wed Mar 17 00:14:32 2010 +0200
@@ -52,10 +52,8 @@
 # Let me have core dumps
 ulimit -c unlimited
 
-
-#######################################
+################################################################
 # shortcut aliases
-#######################################
 
 alias ..="cd .."        #go to parent dir
 alias ...="cd ../.."    #go to grandparent dir
@@ -90,6 +88,14 @@
 # canonicalize path (including resolving symlinks)
 # alias realpath='readlink -f'
 
+# Use bash-completion, if available.
+if [ -f /etc/bash_completion ]; then
+  . /etc/bash_completion
+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