Skip to content

danwaz/hostl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

#Hostl Update hosts and vhosts files with one command

Setup

Clone the project and create a new alias in .bash_profile

alias hostl='sudo /path/to/hostl.sh'

Within hostl.sh

  • edit $HOSTS_FILE and $VHOSTS_FILE to each respective file path
  • edit $TEXT_EDITOR_ALIAS with your text editor of choice
  • edit $BROWSER_PATH with your browser path

Usage

run hostl in your project's root directory

run hostl open to open $HOSTS_FILE and $VHOSTS_FILE in your chosen text editor

Note: This script needs to be run with root level permissions since we are modify root level files.

About

Update hosts and vhosts files with one command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages