From 1370e23ee6ba8cc768cf8872a043164f90a7909a Mon Sep 17 00:00:00 2001 From: Lazarus Lazaridis Date: Fri, 9 Mar 2018 01:09:31 +0200 Subject: [PATCH] Fix macOS errors Refs #12 --- goto.bash | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/goto.bash b/goto.bash index e58ab7b..b3ef6c0 100644 --- a/goto.bash +++ b/goto.bash @@ -257,9 +257,7 @@ function _complete_goto_aliases() COMPREPLY+=("$(compgen -W "${matches[$i]}")") else - al=$("${matches[$i]// */}") - - COMPREPLY+=("$(compgen -W "$al")") + COMPREPLY+=("${matches[$i]// */}") fi done fi @@ -293,9 +291,9 @@ function _complete_goto() if [[ $prev = "-r" ]] || [[ $prev = "--register" ]]; then # prompt with directories only if user tries to register an alias - # shellcheck disable=SC2207 local IFS=$' \t\n' + # shellcheck disable=SC2207 COMPREPLY=($(compgen -d -- "$cur")) fi fi