Skip to content

Commit

Permalink
Fix macOS errors
Browse files Browse the repository at this point in the history
Refs #12
  • Loading branch information
iridakos committed Mar 8, 2018
1 parent 825cc52 commit 1370e23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions goto.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1370e23

Please sign in to comment.