1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Choose whether or not colors should be enabled. Possible
# values are 'never', 'auto' (default) or 'always'
= 'auto'
# Maximum number of calculations to store in fend's
# history file
= 1000
# The characters that are shown as the prompt when
# using fend interactively
= '> '
# Change 'C' and 'F' to refer to coulomb and farad
# instead of degrees celsius and degrees fahrenheit
= false
# What to do if this configuration file contains unknown
# settings. These are the possible values:
# * 'warn': print a warning on startup if there are any
# unknown config settings (default)
# * 'ignore': ignore any unknown configuration settings
= 'warn'
# Whether to enable internet access. This is required for
# currency conversions, where fend makes a request to
# the UN treasury or the European Central Bank website
# to download up-to-date exchange rates.
= true
# Data source for currency exchange rates. fend supports
# the following options:
# * `auto` retrieves data from both sources in parallel
# * `UN` retrieves data from the UN treasury
# (endpoint: https://treasury.un.org/operationalrates/xsql2XML.php)
# * `EU` retrieves data from the EU central bank
# (endpoint: https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml)
# * 'disabled' will disable loading of exchange rate data
= "auto"
# Maximum age of cached exchange rates in seconds.
# If the cached data is older than this value, it will be refreshed.
= 259200
# Decimal and thousands separator style. This can be used to switch
# between e.g. 1,234.56 and 1.234,56.
#
# Possible values:
# * `default`: uses the default
# * `dot`: uses dots as decimal separator and commas as the thousands
# separator. This is commonly used in English.
# * `comma`: uses commas as decimal separator and dots as the thousands
# separator. This is common in European languages.
= "default"
# This section controls the colors that are used by
# fend. Make sure the `enable-colors` setting is
# turned on for this to work.
#
# Color options:
# foreground: the foreground color to use
# bold: whether or not to show text in bold font
# underline: whether or not to underline text
#
# Valid colors are:
# * 'black', 'red', 'green', 'yellow', 'blue',
# 'magenta', 'cyan' or 'white'
# * '256:n' (where `n` is a number between 0 and 255).
#
[]
= {}
= {}
= { = 'white' }
= { = 'blue', = true }
= { = 'blue', = true }
= {}
= {}
# You can define custom units via a `custom-units` array. If there's
# a unit you would like to see added to fend, please consider making
# a pull request to add it to the built-in unit definitions.
#
# Example syntax:
# ```
# [[custom-units]]
# singular = 'mile'
# plural = 'miles' # plural name can be omitted if it is
# # the same as the singular name
# definition = '1609.344 meters'
# attribute = 'allow_long_prefix'
# ```
#
# If the singular and plural names are the same, you can omit
# the `plural` setting.
#
# The `attribute` setting is optional. It can be set
# to one of these values:
# * 'none': this unit cannot be used with prefixes (default)
# * 'allow-long-prefix': allow prefixes like
# 'milli-' or 'giga-' with this unit
# * 'allow-short-prefix': allow abbreviated
# prefixes like 'm' or 'G' (for 'milli' and 'giga' respectively)
# * 'is-long-prefix': allow using this unit
# as a long prefix with another unit
# * 'alias': always expand this unit to its definition
#
# Here are some more examples of how you could define custom units:
#
# ```
# [[custom-units]]
# singular = 'milli'
# definition = '0.001'
# attribute = 'is_long_prefix'
#
# [[custom-units]]
# singular = 'byte'
# plural = 'bytes'
# definition = '!' # an exclamation mark defines a new base unit
# attribute = 'allow_long_prefix'
# ```