viconf solves the following problems for me:
- I cannot remembered where programs put their config file.
- I am too lazy to
man commandto look up the config file location.
- I often make typos when editing config files.
viconf will open the config file for this command, and you can edit it.
viconf will try to check the syntax before saving the file.
wget and node module
shelljs to install this script.
sudo npm install -g coffee-script git clone https://github.com/weakish/viconf.git cd viconf npm install shelljs sudo coffee make.coffee
This will install the
viconf bin file to
You can specify install directory via
make.coffee install, e.g.
sudo coffee make.coffee install /usr/bin
coffee make.coffee install ~/bin
You can use the following command to update configure files from the upstream repo (Be careful, it will overrides your local changes.)
coffee make.coffee updatedb