1
0
Fork 0

default find is compatible on both gnu and bsd

This commit is contained in:
Vladimir Bauer 2019-02-15 20:11:45 +03:00
parent 1ac6fdf524
commit 239eeaf94f
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@
declare-option -docstring "command to provide list of directories to fzf.
Default value:
find: (echo .. && find \( -path '*/.svn*' -o -path '*/.git*' \) -prune -o -type d -print)
find: (echo .. && find . \( -path '*/.svn*' -o -path '*/.git*' \) -prune -o -type d -print)
" \
str fzf_cd_command "find"
@ -37,7 +37,7 @@ define-command -hidden fzf-cd %{ evaluate-commands %sh{
case $kak_opt_fzf_cd_command in
find)
items_command="(echo .. && find \( -path '*/.svn*' -o -path '*/.git*' \) -prune -o -type d -print)" ;;
items_command="(echo .. && find . \( -path '*/.svn*' -o -path '*/.git*' \) -prune -o -type d -print)" ;;
*)
items_command=$kak_opt_fzf_cd_command ;;
esac

View file

@ -17,7 +17,7 @@ Supported tools:
fd: ""fd""
Default arguments:
find: ""find -type f -follow""
find: ""find -L . -type f""
ag: ""ag -l -f --hidden --one-device .""
rg: ""rg -L --hidden --files""
fd: ""fd --type f --follow""
@ -33,7 +33,7 @@ define-command -hidden fzf-file %{ evaluate-commands %sh{
fi
case $kak_opt_fzf_file_command in
find)
cmd="find -type f -follow" ;;
cmd="find -L . -type f" ;;
ag)
cmd="ag -l -f --hidden --one-device . " ;;
rg)