Skip to content
Snippets Groups Projects
Commit 83989645 authored by nimrod's avatar nimrod
Browse files

Add _ prefix to the wrapper subcommands .

So `_docker-dev` could be invoked as `docker dev` without `docker-dev`
getting in the way of tab completion. Renamed the current subcommands
accordingly.
parent 7fcbbe26
No related branches found
No related tags found
No related merge requests found
File moved
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -4,6 +4,10 @@ set -eu
basename="$(basename "$0")"
command="$(command -pv "$basename")" || { echo "$basename: not found"; exit 127; }
if alias="$(command -v "$basename-${1:-}")"
then
shift
"$alias" "$@"
elif alias="$(command -v "_$basename-${1:-}")"
then
shift
"$alias" "$@"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment