Commit Graph

266 Commits

Author SHA1 Message Date
William Melody a52020ed40 Add `hosts file` command to Readme. 2015-03-16 19:56:16 -07:00
William Melody 235be1f151 Expand per-command usage info.
Including descriptions of each command, since the functionality might
not always be immediately obvious.
2015-03-16 19:53:50 -07:00
William Melody bafa955308 Add `file` command
This command simply runs `cat` on /etc/hosts
2015-03-16 19:48:16 -07:00
William Melody 2853d6fd33 Add per-command usage info to program help 2015-03-16 19:38:10 -07:00
William Melody e867492064 In `remove`, delete the link in place rather than blanking first
When using the pattern of blanking the lines first and then deleting
the blank lines, the program ends up deleting potentially intentional
blank lines. In order to avoid this, use a simple delete rather than the
blanking + blank line deleting pattern.
2015-03-16 17:51:28 -07:00
William Melody 7607dfd262 Add `edit` command
`edit` open the hosts file in the editor specified in the $EDITOR
environment variable.
2015-03-16 17:39:50 -07:00
William Melody fc60f3a0d7 Clarify usage information 2015-03-16 17:26:58 -07:00
William Melody f714965f0f Add acknowledgements sections for script and Readme 2015-03-16 17:19:17 -07:00
William Melody 001fcfc959 Add initial Readme with basic information. 2015-03-16 17:08:59 -07:00
William Melody 42465bd461 Rewrite as command-based program using bash boilerplate
This program contains the same functionality as previous iterations,
with several changes:

- move to command-based structure using the bash boilerplate template,
- inlcude basic error handling,
- revise variable naming and options for clarity,
- prefer `printf` over `echo`,
- misc other revisions.
2015-03-16 16:58:35 -07:00
William Melody b88046cd4b Rename script from `host-manager` to `hosts` 2015-03-12 20:35:24 -07:00
Dominique Feyer ff7f431bd7 [TASK] Add list mode 2011-11-16 11:21:13 +01:00
Amos Wenger d1edb3dd30 2011-11-15 14:19:15 -08:00
Amos Wenger fd58acc7f7 2011-11-15 14:15:57 -08:00
Amos Wenger b1aff730b9 2011-11-15 14:06:53 -08:00
Amos Wenger 608d654277 2011-11-15 14:06:00 -08:00