mirror of
https://github.com/iridakos/goto.git
synced 2025-05-16 15:30:22 -07:00
parent
825cc52de7
commit
1370e23ee6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user