Make the Command Extensions requirement more clear
This commit is contained in:
parent
ae74cea6ac
commit
0d0f557580
|
|
@ -221,6 +221,9 @@ zoxide can be installed in 4 easy steps:
|
||||||
> ```batchfile
|
> ```batchfile
|
||||||
> zoxide init cmd | cmd /d >nul
|
> zoxide init cmd | cmd /d >nul
|
||||||
> ```
|
> ```
|
||||||
|
>
|
||||||
|
> **Note**
|
||||||
|
> zoxide only supports `cmd.exe` with Command Extensions v2 and above.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,7 @@
|
||||||
{%- let section = "@rem ==========================================================================\n@rem" -%}
|
{%- let section = "@rem ==========================================================================\n@rem" -%}
|
||||||
{%- let not_configured = "@rem -- not configured --" -%}
|
{%- let not_configured = "@rem -- not configured --" -%}
|
||||||
|
|
||||||
@echo off & (set ComSpec) >nul 2>nul || exit /b 0 2>nul
|
@echo off & setlocal DisableDelayedExpansion EnableExtensions
|
||||||
setlocal DisableDelayedExpansion EnableExtensions
|
|
||||||
|
|
||||||
if /i "%~f0"=="%~dpnx0" (
|
if /i "%~f0"=="%~dpnx0" (
|
||||||
set ^"$p=%%<nul"
|
set ^"$p=%%<nul"
|
||||||
|
|
@ -147,3 +146,5 @@ endlocal & set OLDPWD=
|
||||||
@rem To initialize zoxide, add this to your configuration or AutoRun command:
|
@rem To initialize zoxide, add this to your configuration or AutoRun command:
|
||||||
@rem
|
@rem
|
||||||
@rem zoxide init cmd | cmd /d >nul
|
@rem zoxide init cmd | cmd /d >nul
|
||||||
|
@rem
|
||||||
|
@rem Note: zoxide only supports `cmd.exe` with Command Extensions v2 and above.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue