Skip to main content

Fish Plugin

The Fish plugin provides in-prompt text expansion using Fish's commandline builtin.

Installation

Add to your ~/.config/fish/config.fish:

source /path/to/shell/texpand.fish

Usage

Type a trigger and press Space — the plugin automatically expands:

> echo :hello[space]
> echo Hello World!

You can also press Ctrl+T for manual expansion.

How It Works

The plugin binds to the Space key. When Space is pressed, it checks if the current command line contains a trigger pattern and expands it.

Changing the Keybinding

Edit shell/texpand.fish and change the bind line:

# Change to Ctrl+E instead of Ctrl+T
bind \ce _texpand_expand

What's Next

Explore Advanced Usage with variable chaining and system-wide mode.