]> git.phdru.name Git - dotfiles.git/blobdiff - .shellrc
.shellrc: mtr completion: just hostname
[dotfiles.git] / .shellrc
index 544e298fcf4099338c61bad2130e12d58a228320..0b880623b992fb2d89e7809b3eeb6b2a29274002 100644 (file)
--- a/.shellrc
+++ b/.shellrc
@@ -105,13 +105,17 @@ if test -n "$BASH_VERSION"; then
          ! has_completion $cmd && complete -o default -A command $cmd
    done
 
-   for cmd in dig host nslookup nc netcat nmap p ping ping6 socat \
+   for cmd in dig host mtr nslookup nc netcat nmap p ping ping6 socat \
       telnet t tt \
       tcptraceroute tcptraceroute6 tracert tracert6 traceroute traceroute6 \
       whois wget wget-m wget-wrapper ww; do
          ! has_completion $cmd && complete -A hostname $cmd
    done
 
+   if has_completion wget; then
+      complete -F _wget wget-m wget-wrapper ww
+   fi
+
    for cmd in distribute ftp lftp r rsync \
       s scp ssh smbclient tcpdump tshark wireshark; do
          ! has_completion $cmd && complete -o default -A hostname $cmd;