Created
December 3, 2015 11:50
-
-
Save rummelonp/7a3f992296c5057187d3 to your computer and use it in GitHub Desktop.
zshrc.local に書いてあるやつ
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
typeset -a ROUTES | |
ROUTES=( | |
# Various… | |
) | |
# $ add-routes $YOUR_GATEWAY | |
function add-routes() { | |
typeset gateway=$1 | |
typeset route | |
for route in $ROUTES; do | |
sudo route add -net $route $gateway | |
done | |
} | |
# $ delete-routes | |
function delete-routes() { | |
typeset route | |
for route in $ROUTES; do | |
sudo route delete $route | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment