zsh: made cds() mucho-fast-o

This commit is contained in:
PowerUser64 2021-10-07 16:59:33 -07:00
parent 1b5f8d6a80
commit a82459c1d6

7
.zshrc
View file

@ -159,7 +159,12 @@
# cd search: cd to a directory, given part of its name
cds() {
cd **/*"$1"* && pwd
if ! [ -z "$1" ];then
cd "$(fd --max-results=1 -t d "$1")" && pwd
else
echo "$0: no arguments provided"
return 1
fi
}
# toggles whether a file or group of files is executable