diff options
author | Alexis Roda <alexis.roda.villalonga@gmail.com> | 2019-08-11 21:25:25 +0200 |
---|---|---|
committer | Juan J. MartÃnez <jjm@usebox.net> | 2019-08-11 20:25:25 +0100 |
commit | dbda2ff22441c31fdf3a8d73c5c9cbf54891bef6 (patch) | |
tree | 3a28fac2f72a00da9572b612be0b217039944f61 /README.md | |
parent | c11bb8f20fbae5e6077f395dc3d359d5c0e3b131 (diff) | |
download | z80count-dbda2ff22441c31fdf3a8d73c5c9cbf54891bef6.tar.gz z80count-dbda2ff22441c31fdf3a8d73c5c9cbf54891bef6.zip |
Configuration file support (#17)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -152,6 +152,41 @@ Where A, B, T0 and T1 are: - T0 is the subtotal when the conditional is not met. - T1 is the subtotal when the conditional is met. +## Config file + +`z80count` will look for a config file in the following places, in order: + +- the file given in the environment variable `Z80COUNT_RC`. + +- a file `z80countrc` in the directory given in the environment variable + `XDG_DEFAULT_HOME` or, if this variable is undefined or empty, in + the directory `~/.config`. + +- a file `.z80countrc` in the home directory. + +Example: + +``` +[z80count] +# Column to align newly added comments +# column = 50 + +# Enable debug (show the matched case) +# debug = no + +# Include subtotals +# subtotals = no + +# Number of spaces for each tab +# tab width = 8 + +# Keep previous cycle annotations in the comment. +# keep cycles = no + +# Use tabs to align newly added comments instead of spaces +# use tabs = yes +``` + ## Editor support - [z80count-el](https://github.com/patxoca/z80count-el), emacs |