diff --git a/Windows.md b/Windows.md index d311606..ad90ce5 100644 --- a/Windows.md +++ b/Windows.md @@ -28,9 +28,9 @@ Even if you're on Cygwin, fzf will use `cmd.exe` (instead of `sh`) to start `FZF fzf uses `dir /s/b` as its default command for performance but it outputs absolute filepaths. To use relative filepaths, set `FZF_DEFAULT_COMMAND` to any of the following and run it in cmd.exe because it has no overhead: -- cmd.exe https://github.com/junegunn/fzf/pull/971#issuecomment-313971408 +- cmd.exe https://github.com/junegunn/fzf/pull/1200 ```dosbatch - cmd.exe /v:on/s/c "for /r %P in (*) do @(set _curfile=%P & echo !_curfile:%__cd__%=!)" + cmd.exe /v:on/s/c "for /r %P in (*) do @(set "_curfile=%P" & set "_curfile=!_curfile:%__cd__%=!" & echo !_curfile!)" ``` - powershell https://github.com/junegunn/fzf/issues/960 ```dosbatch