.bash_completion
changeset 577 50e17493c476
parent 553 50b46df6ca28
child 587 b0807924930d
--- a/.bash_completion	Mon Oct 22 21:00:36 2012 +0300
+++ b/.bash_completion	Mon Oct 22 21:25:08 2012 +0300
@@ -58,7 +58,7 @@
 _mycd() {
   local cur
   cur=${COMP_WORDS[COMP_CWORD]}
-  if [[ -z "${CDPATH:-}" || "$cur" == ?(.)?(.)/* ]]; then
+  if [[ -z "${CDPATH:-}" ]] || [[ $cur == ?(.)?(.)/* ]] || [[ $cur == '~'/* ]]; then
     COMPREPLY=( $(compgen -d -- "$cur") )
     return 0
   fi