mirror of
https://github.com/mqttr/dotfiles.git
synced 2025-12-15 04:25:50 -06:00
Added fuzzy child directory searching
This commit is contained in:
12
zsh/.zshrc
12
zsh/.zshrc
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user