Don't run with Command Extensions disabled

This commit is contained in:
mataha 2023-06-07 04:27:36 +02:00
parent ed35b884db
commit ae74cea6ac
1 changed files with 4 additions and 3 deletions

View File

@ -28,9 +28,10 @@
{%- let section = "@rem ==========================================================================\n@rem" -%}
{%- let not_configured = "@rem -- not configured --" -%}
@echo off & setlocal DisableDelayedExpansion EnableExtensions
@echo off & (set ComSpec) >nul 2>nul || exit /b 0 2>nul
setlocal DisableDelayedExpansion EnableExtensions
@if "%~f0"=="%~dpnx0" (
if /i "%~f0"=="%~dpnx0" (
set ^"$p=%%<nul"
) else (
set ^"$p=^%<nul"
@ -140,7 +141,7 @@ set __zoxide_z_prefix={{cmd}}
{%- endmatch %}
@endlocal & set OLDPWD=
endlocal & set OLDPWD=
{{ section }}
@rem To initialize zoxide, add this to your configuration or AutoRun command: