From 70ce90315d82d693a5cbc1fdb87c1dd22217c66e Mon Sep 17 00:00:00 2001 From: Lazarus Lazaridis Date: Mon, 5 Mar 2018 22:10:30 +0200 Subject: [PATCH] Update match regex to support macOS exact match. Refs #1. --- goto.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goto.bash b/goto.bash index 92251f2..784e20d 100644 --- a/goto.bash +++ b/goto.bash @@ -169,7 +169,7 @@ function _goto_directory() # Fetches the alias directory. function _goto_find_alias_directory() { - local resolved=$(sed -n "/^\<$1\>/p" ~/.goto 2>/dev/null | sed 's/[^ ]* //') + local resolved=$(sed -n "/^$1\s/p" ~/.goto 2>/dev/null | sed 's/[^ ]* //') echo "$resolved" }