From 50a8c5eb11de6764b0747581c4e88a62b6cd6649 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 16 Jan 2018 13:36:54 -0500 Subject: [PATCH] Update cmd.exe default command and its hyperlink --- Windows.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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