Skip to content

danhper/fish-completion-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

fish-completions-helpers

Helper functions to make subcommands completions easier with fish.

Installation

Using fundle (recommended)

Add

fundle plugin 'tuvistavie/fish-completion-helpers'

to your config.fish and run fundle install.

Manual

Add the two files in the functions directory in ~/.config/fish/functions.

Usage

For the program main commands, add __fish_prog_needs_command to complete condition (-n flag). Example:

complete -f -c cmd -n '__fish_prog_needs_command' -a start -d "start my cmd"

For the program subcommands, add __fish_prog_using_command SUBCMD to complete condition (-n flag). Example:

complete -f -c cmd -n '__fish_prog_using_command start' -l daemon "start as daemon"

About

Fish helper functions to simplify completions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages