diff --git a/bash_completion b/bash_completion index 2b822333..56a0b403 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05a # -# $Id: bash_completion,v 1.189 2002/03/08 18:26:41 ianmacd Exp $ +# $Id: bash_completion,v 1.190 2002/03/08 19:46:15 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -1695,6 +1695,10 @@ _cd() fi IFS=$' \t\n' _filedir -d + # remove leading ./ from completions + for (( i=0; i < ${#COMPREPLY[@]}; i++ )); do + COMPREPLY[i]=${COMPREPLY[i]/#.\//} + done return 0 }