Added fuzzy child directory searching

This commit is contained in:
mattr
2024-10-13 17:08:17 -05:00
parent 31bb87195a
commit cfb5b354b1

View File

@@ -29,7 +29,7 @@ plugins=(
pip
rust
# git
sudo
# sudo
zsh-syntax-highlighting
)
# Path to your oh-my-zsh installation.
@@ -222,3 +222,13 @@ forgetall () {
rm -f $temp
fi
}
# fzf cd
fcd() {
file=$(fzf)
if [[ -n "$file" ]]; then
parent=$(dirname $file)
cd $parent
print "Moved to \"$parent\""
fi
}