config_file_example: shell command should be cmd.exe on Windows

and add shell command debug in logging
This commit is contained in:
zjp 2023-05-13 15:51:39 +08:00 committed by Denis Isidoro
parent 2933740c17
commit 2f175e6eb2
2 changed files with 5 additions and 1 deletions

View file

@ -28,5 +28,8 @@ finder:
# tags: git,!checkout # equivalent to the --tag-rules option
shell:
command: bash # shell used for shell out. possible values: bash, zsh, dash, ...
# Shell used for shell out. Possible values: bash, zsh, dash, ...
# For Windows, use `cmd.exe` instead.
command: bash
# finder_command: bash # similar, but for fzf's internals

View file

@ -42,5 +42,6 @@ pub fn out() -> Command {
cmd.args(words);
let dash_c = if words_str.contains("cmd.exe") { "/c" } else { "-c" };
cmd.arg(dash_c);
debug!("shell cmd = `{cmd:#?}`");
cmd
}