1
0
Fork 0

[Bugfix] teleport: only get first match with grep

This commit is contained in:
Starbeamrainbowlabs 2017-11-15 21:57:03 +00:00
parent ed2732b37e
commit bc13242b99
1 changed files with 1 additions and 1 deletions

View File

@ -91,5 +91,5 @@ function telepeek() {
find . -type d 2>/dev/null | grep -iP "$1" | less
}
function teleport() {
cd $(find . -type d 2>/dev/null | grep -iP "$1");
cd $(find . -type d 2>/dev/null | grep -m1 -iP "$1");
}