Commits

Anonymous committed b42a25f

Updated 'workon' to use find, to avoid problems with colorized 'ls' output.

  • Participants
  • Parent commits 566edcd

Comments (0)

Files changed (1)

virtualenvwrapper_bashrc

 # List the available environments.
 function virtualenvwrapper_show_workon_options () {
     virtualenvwrapper_verify_workon_home
-	ls "$WORKON_HOME" | egrep -v '*.egg' | egrep -v '(pre|post)(rm|mk)virtualenv' | sort
+	find "$WORKON_HOME" -maxdepth 1 -mindepth 1 -type d -exec basename '{}' \; | egrep -v '*.egg' | egrep -v '(pre|post)(rm|mk)virtualenv' | sort
 }
 
 # List or change working virtual environments