From bc13242b9982aa4a18109a708296db2a64090268 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 15 Nov 2017 21:57:03 +0000 Subject: [PATCH] [Bugfix] teleport: only get first match with grep --- .bash_aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index d6823f4..7ed930a 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -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"); }