Commits

Doug Hellmann  committed 91777a6

fix virtualenvwrapper_show_workon_options to use find again

  • Participants
  • Parent commits ad55b84

Comments (0)

Files changed (1)

File virtualenvwrapper_bashrc

 # List the available environments.
 function virtualenvwrapper_show_workon_options () {
     virtualenvwrapper_verify_workon_home || return 1
-    (cd "$WORKON_HOME"; ls */bin/activate) | sed 's|/bin/activate||' | sort
+    # NOTE: DO NOT use ls here because colorized versions spew control characters
+    #       into the output list.
+    (cd "$WORKON_HOME"; find -L . -path '*/bin/activate') | sed 's|^\./||' | sed 's|/bin/activate||' | sort
 }
 
 # List or change working virtual environments