From 5d0012e61abb9738343dc5dffceda8cccc012a19 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 15 Feb 2019 23:24:13 +0000 Subject: [PATCH] Update readme with ZSH_PECO_HISTORY_OPTS details --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 9d01e0b..9c95c43 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,21 @@ snippet from [percol](https://github.com/mooz/percol). ## Configuration Options +### `ZSH_PECO_HISTORY_OPTS` + +Command-line arguments passed to `peco`. Defaults to `--layout=bottom-up` if the +variable is not set. + +A lot of the Peco options available on the command-line, are also available via +Peco's config file. It's up to you how you want to manage your Peco settings. + +For example, if you want to use the `bottom-up` layout, and change to fuzzy +filtering: + +```bash +ZSH_PECO_HISTORY_OPTS="--layout=bottom-up --initial-filter=Fuzzy" +``` + ### `ZSH_PECO_HISTORY_DEDUP` De-duplicates all history entries before they are handed over to peco. Disabled