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]}")")
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user