feat: j multiple choices

This commit is contained in:
AngeD 2023-01-17 00:31:59 +01:00
parent cb0583efab
commit b46fa62542
8 changed files with 16 additions and 16 deletions

View file

@ -26,5 +26,14 @@ alias watch='coloralias watch -c -- '
alias xargs='xargs '
function j() {
cd **/"$1"
local dirs=(**/"$1")
if [ -z "${dirs[2]}" ]; then
cd "${dirs[1]}"
return
fi
select d in "${dirs[@]}"; do
cd "$d"
break
done
}

@ -1 +1 @@
Subproject commit 35165798a83e2e4f2f0aa6c820e2f7fba23e0179
Subproject commit a066b55f855c8e488d3ea9e26e861bdd5ecd4fe8

@ -1 +1 @@
Subproject commit 4181e8a2cc936bc7b7a89d674bf261023159ed35
Subproject commit 8f0e296dbf27026ea0515ebae0d3cc41f236ecdc