@@ -270,7 +270,7 @@ mkvirtualenv () {
270
270
virtualenvwrapper_verify_virtualenv || return 1
271
271
(
272
272
[ -n " $ZSH_VERSION " ] && setopt SH_WORD_SPLIT
273
- cd " $WORKON_HOME " &&
273
+ \ c d " $WORKON_HOME " &&
274
274
" $VIRTUALENVWRAPPER_VIRTUALENV " $VIRTUALENVWRAPPER_VIRTUALENV_ARGS " $@ " &&
275
275
[ -d " $WORKON_HOME /$envname " ] && \
276
276
virtualenvwrapper_run_hook " pre_mkvirtualenv" " $envname "
@@ -307,7 +307,7 @@ rmvirtualenv () {
307
307
# Move out of the current directory to one known to be
308
308
# safe, in case we are inside the environment somewhere.
309
309
typeset prior_dir=" $( pwd) "
310
- cd " $WORKON_HOME "
310
+ \ c d " $WORKON_HOME "
311
311
312
312
virtualenvwrapper_run_hook " pre_rmvirtualenv" " $env_name "
313
313
\r m -rf " $env_dir "
@@ -316,7 +316,7 @@ rmvirtualenv () {
316
316
# If the directory we used to be in still exists, move back to it.
317
317
if [ -d " $prior_dir " ]
318
318
then
319
- cd " $prior_dir "
319
+ \ c d " $prior_dir "
320
320
fi
321
321
}
322
322
@@ -326,9 +326,9 @@ virtualenvwrapper_show_workon_options () {
326
326
# NOTE: DO NOT use ls here because colorized versions spew control characters
327
327
# into the output list.
328
328
# echo seems a little faster than find, even with -depth 3.
329
- (cd " $WORKON_HOME " ; for f in * /bin/activate; do echo $f ; done) 2> /dev/null | \s ed ' s|^\./||' | \s ed ' s|/bin/activate||' | \s ort | (unset GREP_OPTIONS; \e grep -v ' ^\*$' )
329
+ (\ c d " $WORKON_HOME " ; for f in * /bin/activate; do echo $f ; done) 2> /dev/null | \s ed ' s|^\./||' | \s ed ' s|/bin/activate||' | \s ort | (unset GREP_OPTIONS; \e grep -v ' ^\*$' )
330
330
331
- # (cd "$WORKON_HOME"; find -L . -depth 3 -path '*/bin/activate') | sed 's|^\./||' | sed 's|/bin/activate||' | sort
331
+ # (\ cd "$WORKON_HOME"; find -L . -depth 3 -path '*/bin/activate') | sed 's|^\./||' | sed 's|/bin/activate||' | sort
332
332
}
333
333
334
334
_lsvirtualenv_usage () {
@@ -532,14 +532,14 @@ cdsitepackages () {
532
532
virtualenvwrapper_verify_workon_home || return 1
533
533
virtualenvwrapper_verify_active_environment || return 1
534
534
typeset site_packages=" ` virtualenvwrapper_get_site_packages_dir` "
535
- cd " $site_packages " /$1
535
+ \ c d " $site_packages " /$1
536
536
}
537
537
538
538
# Does a ``cd`` to the root of the currently-active virtualenv.
539
539
cdvirtualenv () {
540
540
virtualenvwrapper_verify_workon_home || return 1
541
541
virtualenvwrapper_verify_active_environment || return 1
542
- cd $VIRTUAL_ENV /$1
542
+ \ c d $VIRTUAL_ENV /$1
543
543
}
544
544
545
545
# Shows the content of the site-packages directory of the currently-active
@@ -615,7 +615,7 @@ cpvirtualenv() {
615
615
" $VIRTUALENVWRAPPER_VIRTUALENV " " $target_env " --relocatable
616
616
\s ed " s/VIRTUAL_ENV\(.*\)$env_name /VIRTUAL_ENV\1$new_env /g" < " $source_env /bin/activate" > " $target_env /bin/activate"
617
617
618
- (cd " $WORKON_HOME " && (
618
+ (\ c d " $WORKON_HOME " && (
619
619
virtualenvwrapper_run_hook " pre_cpvirtualenv" " $env_name " " $new_env " ;
620
620
virtualenvwrapper_run_hook " pre_mkvirtualenv" " $new_env "
621
621
))
0 commit comments