Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 7 lines (5 sloc) 182 Bytes
#!/bin/sh
# Toggle hosts file.
# © 2014 Tom Vincent <http://tlvince.com/contact>
hosts="${HOSTS:-/etc/hosts}"
[ -f "$hosts" ] && sudo mv -v "$hosts"{,~} || sudo mv -v "$hosts"{~,}