Jump to content

Request: Edit Hosts File


Recommended Posts

Posted

Has anyone created a workflow for more robust editing of the hosts file?

 

Of course, typing this into Terminal works just fine:

sudo nano /private/etc/hosts

 

But was wondering if anyone has taken it beyond the basics? (Like opening in TextWrangler / TextEdit, etc)

Posted

Well... I usually use sublime text 2 in the shell... with sudo subl /private/etc/hosts not really worth a workflow for me.

Posted (edited)

I just press 'ga' and hit Enter to open Gas Mask and edit hosts file.

 

gas_mask_0_6.png

 

You can very well set a custom keyword like 'hosts' to open that app if you think that app name is not easy enough to remember by creating a workflow.

 

Screen%20Shot%202013-04-15%20at%2012.27.

 

Here is my little workflow that launches 'Gas Mask' app (if present, of course) using the hosts keyword: http://cl.ly/0T2L2s3n0L2R

Edited by Sridhar Katakam

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...