From 4fde6c0c9b2f76a479299ce29e6df96e1b6642d6 Mon Sep 17 00:00:00 2001 From: Lazarus Lazaridis Date: Mon, 5 Mar 2018 22:13:57 +0200 Subject: [PATCH] Fix match regex when finding alias directory. Refs #1. --- goto.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goto.bash b/goto.bash index 784e20d..cc0d51d 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\s/p" ~/.goto 2>/dev/null | sed 's/[^ ]* //') + local resolved=$(sed -n "/^$1 /p" ~/.goto 2>/dev/null | sed 's/[^ ]* //') echo "$resolved" }