mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-01-09 20:33:34 -08:00
27 lines
564 B
Bash
27 lines
564 B
Bash
# tracepath(8) completion -*- shell-script -*-
|
|
|
|
_tracepath()
|
|
{
|
|
local cur prev words cword
|
|
_init_completion || return
|
|
|
|
case $prev in
|
|
-*[lmp])
|
|
return
|
|
;;
|
|
esac
|
|
|
|
if [[ $cur == -* ]]; then
|
|
local opts=$(_parse_help "$1")
|
|
COMPREPLY=($(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur"))
|
|
return
|
|
fi
|
|
|
|
local ipvx
|
|
[[ $1 == *6 ]] && ipvx=-6
|
|
_known_hosts_real ${ipvx-} -- "$cur"
|
|
} &&
|
|
complete -F _tracepath tracepath tracepath6
|
|
|
|
# ex: filetype=sh
|