Skip to content

Commit 697c276

Browse files
sur5rscop
authored andcommitted
feat: Add support for ping4
1 parent b9c56eb commit 697c276

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

completions/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
/phing
152152
/pigz
153153
/pinfo
154+
/ping4
154155
/ping6
155156
/pkg_deinstall
156157
/pkg_info

completions/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ symlinks: $(DATA)
959959
$(ss) pine \
960960
alpine
961961
$(ss) ping \
962-
ping6
962+
ping4 ping6
963963
$(ss) pkg-config \
964964
pkgconf
965965
$(ss) pkg_delete \

completions/ping

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ _ping()
6565
fi
6666

6767
[[ $1 == *6 ]] && ipvx=-6
68+
[[ $1 == *4 ]] && ipvx=-4
6869
_known_hosts_real ${ipvx-} -- "$cur"
6970
} &&
70-
complete -F _ping ping ping6
71+
complete -F _ping ping ping4 ping6
7172

7273
# ex: filetype=sh

0 commit comments

Comments
 (0)