Skip to content
Henry Catalini Smith edited this page Oct 31, 2021 · 2 revisions

Summary

List all contacts

Synopsis

ppl ls [<options>]
    --format <format>  specify a custom output format
    --pretty <preset>  specify a preset output format

Formatting Options

Using the --format option, ppl ls can be customized to produce output in a user-specified format. This is similar functionality to printf or the customizability of other software such as git log. Here are the placeholders.

%n   Newline
%i   Contact ID
%N   Name
%a   Age
%b   Birthday
%k   Nickname      (first)
%e   Email address (preferred/first)
%p   Phone number  (preferred/first)
%o   Organization  (first)

Commonly used output formats can be stored in ~/.pplconfig and invoked by name using the --pretty option. For example, the following configuration would allow the format to be used by running ppl ls --pretty age_info.

[pretty]
    age_info = "%i: %a (%b)"

Examples

$ ppl ls
jdoe: John Doe <[email protected]>
kdoe: Kent Doe <[email protected]>

See Also

  1. color output
Clone this wiki locally