mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 03:23:05 +00:00
config_file_example: shell command should be cmd.exe
on Windows
and add shell command debug in logging
This commit is contained in:
parent
eaadec172c
commit
25792db877
2 changed files with 5 additions and 1 deletions
|
@ -28,5 +28,8 @@ finder:
|
||||||
# tags: git,!checkout # equivalent to the --tag-rules option
|
# tags: git,!checkout # equivalent to the --tag-rules option
|
||||||
|
|
||||||
shell:
|
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
|
# finder_command: bash # similar, but for fzf's internals
|
||||||
|
|
|
@ -42,5 +42,6 @@ pub fn out() -> Command {
|
||||||
cmd.args(words);
|
cmd.args(words);
|
||||||
let dash_c = if words_str.contains("cmd.exe") { "/c" } else { "-c" };
|
let dash_c = if words_str.contains("cmd.exe") { "/c" } else { "-c" };
|
||||||
cmd.arg(dash_c);
|
cmd.arg(dash_c);
|
||||||
|
debug!("shell cmd = `{cmd:#?}`");
|
||||||
cmd
|
cmd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue