Skip to content

Commit

Permalink
revert keying on CONDA_BAT
Browse files Browse the repository at this point in the history
  • Loading branch information
kalefranz committed Jun 15, 2018
1 parent fbd2087 commit 0cb3413
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions conda/shell/condacmd/conda_hook.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@REM The file name is conda_hook.bat rather than conda-hook.bat because conda will see
@REM the latter as a 'conda hook' command.

@IF DEFINED CONDA_BAT GOTO :EOF
@IF DEFINED CONDA_SHLVL GOTO :EOF

@FOR %%F in ("%~dp0") do @SET __condacmd_dir=%%~dpF
@SET "PATH=%__condacmd_dir%;%PATH%"
Expand All @@ -16,5 +16,4 @@

@DOSKEY conda=%CONDA_BAT% $*

@IF DEFINED CONDA_SHLVL GOTO :EOF
@SET CONDA_SHLVL=0
6 changes: 3 additions & 3 deletions tests/test_activate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,9 +1123,9 @@ class InteractiveShell(object):
},
'cmd.exe': {
'activator': 'cmd.exe',
'init_command': 'set CONDA_SHLVL= '
'&& conda\\shell\\condacmd\\conda_hook.bat '
'&& set CONDA_EXE="python -m conda"',
'init_command': 'set "CONDA_SHLVL=" '
'&& @CALL conda\\shell\\condacmd\\conda_hook.bat '
'&& set "CONDA_EXE=python -m conda"',
'print_env_var': '@echo %%%s%%',
},
'csh': {
Expand Down

0 comments on commit 0cb3413

Please sign in to comment.