Skip to content

config import-extras

Import extra shell script configs from a GitHub Gist defined in your fns-cli configuration.

Usage

fns-cli config import-extras

Flags

FlagDescription
-h, --helpShow help

How it works

  1. Reads the first entry under extras in your config (~/.fns-cli/config.toml), which must contain a GitHub Gist ID.
  2. Fetches the Gist via the GitHub API.
  3. Clears the local extras directory (~/.fns-cli/extras.d/).
  4. Saves each shell script file (application/x-sh) from the Gist into ~/.fns-cli/extras.d/, named as <gist-id>-<filename>.

Tips

  • Only files with MIME type application/x-sh are downloaded — other file types in the Gist are ignored.
  • To make the extras available in your shell, source the scripts from ~/.fns-cli/extras.d/ in your .bashrc or .zshrc.
  • Re-running this command replaces all previously imported extras.