ABOOKRC(5)
π ABOOKRC(5) π
ok so you've met abook(1) and now you wanna customize it?? bestie, welcome to the rc file era π
this page is all about the manual page for abookrc β the config file situation β and we're gonna go through literally every single knob together.
β¨ NAME β¨
$HOME/.abook/abookrc β it's the configuration file for the abook address book program, and it's about to be your new fave little text file π«Ά
πΈ DESCRIPTION πΈ
So abookrc is the (optional, no pressure) configuration file for use with the abook(1) address book program.
Where does it live? It's stored in a user's $HOME/.abook or XDG_DATA_HOME/abook directory. Pick your fighter π
The format is a whole vibe: set option=value. That's it. That's the whole grammar. The info below lists each of these options and the values they may take, so like, read on.
And here's the good part: if a variable is not set in abookrc, a sensible default β listed with the description below, iykyk β will be used. no cap, it just handles it for you β¨
Comments in abookrc are on lines beginning with '#'. go off, annotate your heart out.
π COMMANDS π
set option = valueβ the classic. sets an option to a value. iconic behavior.field identifier = human_readable_name [ , type ]β defines a new custom field π¦typecan be one of'string'(default),'emails','list', or'date'.view view name = field1 [ , field2, ... ]β defines a view/tab, withfieldNbeing the identifier of a field declared with thefieldcommand, or the identifier of a standard field.
π Standard fields
lowkey the VIP list, here they are:
name, email,
address, address2, city, state, zip, country,
phone, workphone, fax, mobile,
nick, url, notes, anniversary
Note: if you don't define any view, abook will use a default display based on the above standard fields. so like, it's got you either way π«Ά
β VARIABLES β
autosave=[true|false]β Defines whether the addressbook is automatically saved on exit. Default istrue. (bestie please leave this on, the way I would simply pass away if I lost an entry π)preserve_fields=[all|standard|none]β Specifies how fields not declared with thefieldcommand nor in a view should be preserved while loading an abook database.allβ preserve any completely unknown field.standardβ only preserve the standard fields (see a list in the description of theviewcommand) and the legacy'custom[1-5]'fields.noneβ discards any unknown field.- Default is
standard.
index_format=format_stringβ Defines the way entries are displayed in the main list. This is a string containing field names enclosed between braces, with an optional width limit specified by a number (right alignment if negative) after the field name and a colon, and an arbitrary number of alternative fields (first with non empty content is to be displayed) separated by vertical bars. For instance:{name:22}β displays the name field with a maximal width of 22 characters.{phone:-12|workphone|mobile}β displays (right aligned within a width of 13 characters), either the phone, workphone or mobile field, whichever being the first to be non-empty.- Default is
" {name:22} {email:40} {phone:12|workphone|mobile}"
show_all_emails=[true|false]β Defines whether all email addresses for a contact are shown in the main list view. Default istrue.emailposextra_columnextra_alternativeextrapos
β all four of these are Obsoleted by index_format. rest in peace, legends π (don't use them, they're giving legacy.)
mutt_return_all_emails=[true|false]β Defines whether to return all email addresses matching the search criteria to a mutt query. Default istrue.print_command=commandβ Defines the command to used when printing the addressbook. Default is"lpr".www_command=commandβ Defines the command used to start the web browser to view a contact's URL. Default is"lynx".address_style=[eu|uk|us]β Defines the style of address formatting to be used when exporting as text / printing the database (European, UK, or USA). Default is European ("eu").use_ascii_only=[true|false]β This option allows you to force Abook use only ASCII characters. This option is useful if your terminal doesn't support non-ASCII characters. Default isfalse.add_email_prevent_duplicates=[true|false]β Defines whether to avoid adding addresses already in data. Default isfalse.sort_field=fieldβ Defines the field to be used by the "sort by field" command. Default is"nick"(Nickname/Alias).show_cursor=[true|false]β Defines if the cursor is visible in main display. Default isfalse.use_mouse=[true|false]β Defines if navigation via the mouse is activated. Default isfalse. Most terminals can also inhibit ncurses mouse events at runtime by holding the Shift key (restoring mouse-selection behavior). so if the mouse stuff is being weird, hold shift and slay π±οΈscroll_speed=linesβ Defines the number of lines the address list is scrolled by on a mouse wheel action. This option only takes effect ifuse_mouseis enabled. Default is2.use_colors=[true|false]β Defines if the output of abook is colorized. Default isfalse. (turn this on, the aesthetic potential is unmatched π₯)
π¨ Color settings
These are the ones that make your address book look like a main character. Foreground and background for literally everything:
color_header_fg=colorβ Foreground color for header barcolor_header_bg=colorβ Background color for header barcolor_footer_fg=colorβ Foreground color for footer barcolor_footer_bg=colorβ Background color for footer barcolor_list_even_fg=colorβ Foreground color for normal list entries with even index in the list (starting with index 0)color_list_even_bg=colorβ Background color for normal list entries with even index in the list (starting with index 0)color_list_odd_fg=colorβ Foreground color for normal list entries with odd index in the list (starting with index 0)color_list_odd_bg=colorβ Background color for normal list entries with odd index in the list (starting with index 0)color_list_header_fg=colorβ Foreground color for the list headercolor_list_header_bg=colorβ Background color for the list headercolor_list_highlight_fg=colorβ Foreground color for highlighted list entriescolor_list_highlight_bg=colorβ Background color for highlighted list entriescolor_tab_border_fg=colorβ Foreground color for tab borders on details pagecolor_tab_border_bg=colorβ Background color for tab borders on details pagecolor_tab_label_fg=colorβ Foreground color for tab labes on details pagecolor_tab_label_bg=colorβ Background color for tab labes on details pagecolor_field_name_fg=colorβ Foreground color for field names on details pagecolor_field_name_bg=colorβ Background color for field names on details pagecolor_field_value_fg=colorβ Foreground color for field values on details pagecolor_field_value_bg=colorβ Background color for field values on details page
And where color can be: default, black, red, green, yellow, blue, magenta, cyan, white π
π§ SAMPLE CONFIGURATION FILE π§
here's a whole mood board of a config, copy away bestie:
# sample abook configuration file
#
# Declare a few custom fields
field pager = Pager
field address_lines = Address, list
field birthday = Birthday, date
# Define how fields should be displayed in tabs
view CONTACT = name, email
view ADDRESS = address_lines, city, state, zip, country
view PHONE = phone, workphone, pager, mobile, fax
view OTHER = url, birthday
# Preserve any unknown field while loading an abook database
set preserve_fields=all
# Automatically save database on exit
set autosave=true
# Format of entries lines in list
set index_format=" {name:22} {email:40} {phone:12|workphone|mobile}"
# Show all email addresses in list
set show_all_emails=true
# Command used to start mutt
set mutt_command=mutt
# Return all email addresses to a mutt query
set mutt_return_all_emails=true
# Command used to print
set print_command=lpr
# Command used to start the web browser
set www_command=lynx
# Address style [eu|us|uk]
set address_style=eu
# Use ASCII characters only
set use_ascii_only=false
# Prevent double entry
set add_email_prevent_duplicates=false
# Field to be used with "sort by field" command
set sort_field=nick
# Show cursor in main display
set show_cursor=false
π SEE ALSO π
abook(1). that's the one. go read it, it's the whole reason this file exists π
π AUTHORS π
This manual page was written by Alan Ford <alan@whirlnet.co.uk> and expanded by Cedric Duval <cedricduval@free.fr>. kings, both of them π«‘
abook was written by Jaakko Heinonen <jheinonen@users.sourceforge.net>
and that's the whole page!! this one's from the File Formats Manual, dated Oct 25, 2005, and it's ABOOKRC(5) β like, that's the section 5 file formats manual entry for abookrc, bestie. go configure something iconic π
β¨π
π¦ where this page comes from
- alpine 3.24: abook-doc 0.6.2-r0 Β· GPL-3.0-or-later
- nixos 26.05: abook 0.6.2
- nixpkgs unstable: abook 0.6.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms