mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-16 15:23:48 -05:00
Update cmd.exe default command and its hyperlink
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user