Fix macOS errors

Refs #12
This commit is contained in:
Lazarus Lazaridis 2018-03-09 01:09:31 +02:00 committed by GitHub
parent 825cc52de7
commit 1370e23ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,9 +257,7 @@ function _complete_goto_aliases()
COMPREPLY+=("$(compgen -W "${matches[$i]}")") COMPREPLY+=("$(compgen -W "${matches[$i]}")")
else else
al=$("${matches[$i]// */}") COMPREPLY+=("${matches[$i]// */}")
COMPREPLY+=("$(compgen -W "$al")")
fi fi
done done
fi fi
@ -293,9 +291,9 @@ function _complete_goto()
if [[ $prev = "-r" ]] || [[ $prev = "--register" ]]; then if [[ $prev = "-r" ]] || [[ $prev = "--register" ]]; then
# prompt with directories only if user tries to register an alias # prompt with directories only if user tries to register an alias
# shellcheck disable=SC2207
local IFS=$' \t\n' local IFS=$' \t\n'
# shellcheck disable=SC2207
COMPREPLY=($(compgen -d -- "$cur")) COMPREPLY=($(compgen -d -- "$cur"))
fi fi
fi fi