From 7607dfd262f5eb192990ecad6910d4e605426c93 Mon Sep 17 00:00:00 2001 From: William Melody Date: Mon, 16 Mar 2015 17:38:06 -0700 Subject: [PATCH] Add `edit` command `edit` open the hosts file in the editor specified in the $EDITOR environment variable. --- Readme.md | 1 + hosts | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/Readme.md b/Readme.md index 8e2b1b6..d30a257 100644 --- a/Readme.md +++ b/Readme.md @@ -8,6 +8,7 @@ A program for managing host file entries. hosts add hosts remove hosts list [127.] + hosts edit ## Acknowledgements diff --git a/hosts b/hosts index e9db7a1..b9b9af1 100755 --- a/hosts +++ b/hosts @@ -666,6 +666,19 @@ list() { fi } +# ------------------------------------------------------------------------ edit + +desc edit <