We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7d6b07 commit 78729b0Copy full SHA for 78729b0
virtualenvwrapper_bashrc
@@ -126,7 +126,9 @@ function rmvirtualenv () {
126
# List the available environments.
127
function virtualenvwrapper_show_workon_options () {
128
virtualenvwrapper_verify_workon_home || return 1
129
- (cd "$WORKON_HOME"; ls */bin/activate) | sed 's|/bin/activate||' | sort
+ # NOTE: DO NOT use ls here because colorized versions spew control characters
130
+ # into the output list.
131
+ (cd "$WORKON_HOME"; find -L . -path '*/bin/activate') | sed 's|^\./||' | sed 's|/bin/activate||' | sort
132
}
133
134
# List or change working virtual environments
0 commit comments