Home

Awesome

pisces ☯ 双鱼

pisces ['paɪsiz] is a plugin for fish that helps you to work with paired symbols like () and '' in the command line. Similar to your favorite text editor!

Features

Here | denotes the current cursor position. No manual cursor motion involved :sparkles:

Installation

<details> <summary>Notes on fish 2.x compatibility</summary>

The minimum recommended version of fish is v2.6, because

The minimum required version of fish is v2.3, because

</details>

Configuration

Only completing at the end of the line

To disable completing pairs unless the cursor is at the end of the line, set the $pisces_only_insert_at_eol variable:

set -U pisces_only_insert_at_eol 1

Changing the set of pairs

You can set the $pisces_pairs universal variable and launch a new fish session to reload key bindings:

set -U pisces_pairs $pisces_pairs '<,>' '`,`' '«,»'

Note that at the moment pisces works correctly only with single-symbol delimiters.

The default set of pairs: