mirror of
https://github.com/TheM1Stery/dotfiles.git
synced 2025-04-19 16:51:10 +00:00
fix(bug): make cdf
only search for directories
This commit is contained in:
parent
7920362bd3
commit
bd456bec5d
@ -96,13 +96,13 @@ cdf(){
|
||||
fi
|
||||
if [ -z "$arg" ]; then
|
||||
if $hidden; then
|
||||
result="$($FZF_DEFAULT_COMMAND --hidden | fzf)"
|
||||
result="$($FZF_DEFAULT_COMMAND --type d --hidden | fzf)"
|
||||
if [ -d "$result" ]; then
|
||||
cd "$result"
|
||||
fi
|
||||
return 0
|
||||
fi
|
||||
result="$(fzf $arg)"
|
||||
result="$(fd . $HOME --type d | fzf)"
|
||||
if [ -d "$result" ]; then
|
||||
cd "$result"
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user