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:
parent
ed2732b37e
commit
bc13242b99
1 changed files with 1 additions and 1 deletions
|
@ -91,5 +91,5 @@ function telepeek() {
|
||||||
find . -type d 2>/dev/null | grep -iP "$1" | less
|
find . -type d 2>/dev/null | grep -iP "$1" | less
|
||||||
}
|
}
|
||||||
function teleport() {
|
function teleport() {
|
||||||
cd $(find . -type d 2>/dev/null | grep -iP "$1");
|
cd $(find . -type d 2>/dev/null | grep -m1 -iP "$1");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue