Skip to content
company backend for fish shell completions
Emacs Lisp
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
README.org
company-fish.el

README.org

Company Fish

This company backend provides completion candidates for shell and eshell buffers based on the Fish shell.

Installation

clone this repo and add the following to your .emacs

(when (executable-find "fish")
  (add-to-list 'company-backends 'company-fish)
  (add-hook 'shell-mode-hook 'company-mode)
  (add-hook 'eshell-mode-hook 'company-mode))

Features

Provides completions for

  • commands
  • command-line options

Company vs Pcomplete

There already exists a pcomplete Fish completion backend (emacs-fish-completion) on which company-fish was based. You can even use it with company via company-capf. The only thing that this package provides over the pcomplete version is annotations (short descriptions of the candidates). If you don’t care about that feature you would be better off using the pcomplete version.

img/tar-example.png

You can’t perform that action at this time.