gha3mi / fpm-completions

Command-line completion functions for the Fortran Package Manager.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demo

fpm-completions

Command-line completion functions for the Fortran Package Manager.

Bash

This package provides a completion script for bash.

To use the script bash/fpm.bash, Bash (v4.x, or newer) and bash-completion (v2.x, or newer) are required.

Put the fpm.bash file in the bash/ directory into the directory ~/.local/share/bash-completion/completions.

Then, reload the shell:

$ exec -l $SHELL

Zsh

This package also provides a completion script for Zsh.

Put the _fpm file in the zsh/ directory into the directory described in the shell variable fpath.

Furthermore, add the following to ~/.zshrc:

autoload -Uz compinit
compinit -u

Finally, reload the shell.

% exec -l $SHELL

For example, if you place the _fpm file in ~/zsh/functions, the ~/.zshrc will be like this:

fpath=( "$HOME/zsh/functions" "${fpath[@]}" )
autoload -Uz compinit
compinit -u

Don't forget to reload the shell.

% exec -l $SHELL

About

Command-line completion functions for the Fortran Package Manager.

License:MIT License


Languages

Language:Shell 100.0%