diff options
author | zjp <jiping_zhou@foxmail.com> | 2023-05-13 15:51:39 +0800 |
---|---|---|
committer | Denis Isidoro <denis.isidoro@uber.com> | 2023-12-10 06:26:34 -0300 |
commit | 2f175e6eb23162d3e93f626b5c8a1659ef285b4a (patch) | |
tree | 0f37f3dbe9c5622de142387b73cd85f8d2b4bf4b | |
parent | 2933740c1786a6652157bcf492dd4119c21d2195 (diff) |
config_file_example: shell command should be `cmd.exe` on Windows
and add shell command debug in logging
-rw-r--r-- | docs/config_file_example.yaml | 5 | ||||
-rw-r--r-- | src/common/shell.rs | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/config_file_example.yaml b/docs/config_file_example.yaml index ce14365..1eb7ab7 100644 --- a/docs/config_file_example.yaml +++ b/docs/config_file_example.yaml @@ -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 diff --git a/src/common/shell.rs b/src/common/shell.rs index 331eb32..976128b 100644 --- a/src/common/shell.rs +++ b/src/common/shell.rs @@ -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 } |