Created
July 8, 2014 10:36
-
-
Save penguin2716/088126c7f59e5cca33e5 to your computer and use it in GitHub Desktop.
source this script in your ~/.bashrc and stop using deprecated package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
function arp { | |
echo "use 'ip n' instead." | |
return 1 | |
} | |
function ifconfig { | |
echo "use 'ip a (ip addr)', 'ip link', or 'ip -s (ip -stats)' instead." | |
return 1 | |
} | |
function iptunnel { | |
echo "use 'ip tunnel' instead." | |
return 1 | |
} | |
function iwconfig { | |
echo "use 'iw' instead." | |
return 1 | |
} | |
function nameif { | |
echo "use 'ip link' or 'ifrename' instead." | |
return 1 | |
} | |
function netstat { | |
echo "use 'ss', 'ip route (for netstat-r)', 'ip -s link (for netstat -i)', or 'ip maddr (for netstat-g)' instead" | |
return 1 | |
} | |
function route { | |
echo "use 'ip r' instead." | |
return 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment