#!/usr/bin/env bash # Uncomment host in /etc/hosts file to hit it directly with browser. # used by argos gnome extensions # https://github.com/rammie/argos if [ "$1" == "01" ];then sudo sed -i "/x.x.x.x/s/^#//g" /etc/hosts elif [ "$1" == "02" ];then sudo sed -i "/x.x.x.x/s/^#//g" /etc/hosts elif [ "$1" == "03" ];then sudo sed -i "/x.x.x.x/s/^#//g" /etc/hosts elif [ "$1" == "reset" ];then sudo sed -i "/# DELIMITER/,/#\/DELIMITER/s/^\([^#].*\)/#\1/g" /etc/hosts fi