--- bash_completion.03 2008-05-02 17:58:44.000000000 -0400 +++ bash_completion 2008-05-02 18:01:46.000000000 -0400 @@ -342,7 +342,9 @@ # expand ~username type directory specifications if [[ "$cur" == \~*/* ]]; then - eval cur=$cur + ( cd ~; + eval dur=(${cur:2}); + cur=${dur[*]/#/xxx} ); elif [[ "$cur" == \~* ]]; then cur=${cur#\~} COMPREPLY=( $( compgen -P '~' -u $cur ) )