Skip to content

Commit c017813

Browse files
committed
handle empty workon_home dir properly
1 parent ea0f526 commit c017813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtualenvwrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ virtualenvwrapper_show_workon_options () {
196196
# NOTE: DO NOT use ls here because colorized versions spew control characters
197197
# into the output list.
198198
# echo seems a little faster than find, even with -depth 3.
199-
(cd "$WORKON_HOME"; for f in */bin/activate; do echo $f; done) 2>/dev/null | sed 's|^\./||' | sed 's|/bin/activate||' | sort
199+
(cd "$WORKON_HOME"; for f in */bin/activate; do echo $f; done) 2>/dev/null | sed 's|^\./||' | sed 's|/bin/activate||' | sort | egrep -v '^\*$'
200200
# (cd "$WORKON_HOME"; find -L . -depth 3 -path '*/bin/activate') | sed 's|^\./||' | sed 's|/bin/activate||' | sort
201201
}
202202

0 commit comments

Comments
 (0)