config import-extras
Import extra shell script configs from a GitHub Gist defined in your fns-cli configuration.
Usage
fns-cli config import-extrasFlags
| Flag | Description |
|---|---|
-h, --help | Show help |
How it works
- Reads the first entry under
extrasin your config (~/.fns-cli/config.toml), which must contain a GitHub Gist ID. - Fetches the Gist via the GitHub API.
- Clears the local extras directory (
~/.fns-cli/extras.d/). - 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-share 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.bashrcor.zshrc. - Re-running this command replaces all previously imported extras.
