1
0
Fork 0
mirror of https://github.com/sbrl/bin.git synced 2018-01-10 21:33:46 +00:00

[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

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");
}