Fix follow symlink option for find…
This commit is contained in:
parent
0efcde9399
commit
5b82144876
8
zshrc
8
zshrc
|
@ -2091,10 +2091,10 @@ function ff() {
|
||||||
## Manage argument {{{
|
## Manage argument {{{
|
||||||
if [ "${#}" -eq "0" ]; then
|
if [ "${#}" -eq "0" ]; then
|
||||||
## Default command without args
|
## Default command without args
|
||||||
dir=$(find . -xtype d --follow -not -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi) &&
|
dir=$(find -L . -xtype d -not -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi) &&
|
||||||
else
|
else
|
||||||
## If at least one argument was given, add it to fzf query
|
## If at least one argument was given, add it to fzf query
|
||||||
dir=$(find . -xtype d --follow -not -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi --query "${*} ") &&
|
dir=$(find -L . -xtype d -not -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi --query "${*} ") &&
|
||||||
fi
|
fi
|
||||||
## }}}
|
## }}}
|
||||||
|
|
||||||
|
@ -2113,10 +2113,10 @@ function ffh() {
|
||||||
## Manage argument {{{
|
## Manage argument {{{
|
||||||
if [ "${#}" -eq "0" ]; then
|
if [ "${#}" -eq "0" ]; then
|
||||||
## Default command without args
|
## Default command without args
|
||||||
dir=$(find . -xtype d --follow -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi) &&
|
dir=$(find -L . -xtype d -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi) &&
|
||||||
else
|
else
|
||||||
## If at least one argument was given, add it to fzf query
|
## If at least one argument was given, add it to fzf query
|
||||||
dir=$(find . -xtype d --follow -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi --query "${*} ") &&
|
dir=$(find -L . -xtype d -path "*/.*" | fzf --prompt='cd> ' --height=50% --preview 'eza --tree --level 2 {} | head --lines=20' --no-multi --query "${*} ") &&
|
||||||
fi
|
fi
|
||||||
## }}}
|
## }}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue