Skip to content

Commit 31c1253

Browse files
author
jforcier
committed
Updated 'workon' to use find, to avoid problems with colorized 'ls' output.
1 parent 3ca2956 commit 31c1253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtualenvwrapper_bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function rmvirtualenv () {
115115
# List the available environments.
116116
function virtualenvwrapper_show_workon_options () {
117117
virtualenvwrapper_verify_workon_home
118-
ls "$WORKON_HOME" | egrep -v '*.egg' | egrep -v '(pre|post)(rm|mk)virtualenv' | sort
118+
find "$WORKON_HOME" -maxdepth 1 -mindepth 1 -type d -exec basename '{}' \; | egrep -v '*.egg' | egrep -v '(pre|post)(rm|mk)virtualenv' | sort
119119
}
120120

121121
# List or change working virtual environments

0 commit comments

Comments
 (0)