summaryrefslogtreecommitdiff
path: root/completions/tracepath
diff options
context:
space:
mode:
Diffstat (limited to 'completions/tracepath')
-rw-r--r--completions/tracepath23
1 files changed, 23 insertions, 0 deletions
diff --git a/completions/tracepath b/completions/tracepath
new file mode 100644
index 00000000..1861b6a2
--- /dev/null
+++ b/completions/tracepath
@@ -0,0 +1,23 @@
+# tracepath(8) completion -*- shell-script -*-
+
+_tracepath()
+{
+ local cur prev words cword
+ _init_completion || return
+
+ case $prev in
+ -l)
+ return
+ ;;
+ esac
+
+ if [[ $cur == -* ]]; then
+ COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
+ return
+ fi
+
+ _known_hosts_real "$cur"
+} &&
+complete -F _tracepath tracepath tracepath6
+
+# ex: ts=4 sw=4 et filetype=sh