Use bash-completion, if available.
--- 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