.bash_completion
changeset 736 73748dd9a563
parent 638 19faaf3d9d32
child 770 7bd2639fafaf
--- a/.bash_completion	Wed Feb 25 01:17:28 2015 +0200
+++ b/.bash_completion	Thu Mar 12 17:08:09 2015 +0200
@@ -59,8 +59,7 @@
   local cur
   cur=${COMP_WORDS[COMP_CWORD]}
   if [[ -z "${CDPATH:-}" ]] || [[ $cur == ?(.)?(.)/* ]] || [[ $cur == '~'/* ]]; then
-    COMPREPLY=( $(compgen -d -- "$cur") )
-    COMPREPLY=${COMPREPLY[@]/%//}
+    compopt -o dirnames; COMPREPLY=()
     return 0
   fi
   local i j k