Skip to content

4.0.0-beta.6

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Oct 16:34
· 138 commits to main since this release
794e5dd

The main news in this release: configlet now has shell completion scripts, and they're distributed with configlet itself.

New features

This release adds a new command: configlet completion. Running it like

configlet completion --shell bash|fish|zsh

will output the specified completion script to stdout.

Below are some basic instructions on enabling completions for configlet. Please consult the documentation for your shell for more details.

Enable completions for bash

For the current shell:

source <(configlet completion --shell bash)

Enable completions for fish:

For the current user:

configlet completion --shell fish > ~/.config/fish/completions/configlet.fish

Enable completions for zsh

Write the _configlet script to a directory of your choice (here, ~/foo/zsh-completions):

mkdir -p ~/foo/zsh-completions
configlet completion --shell zsh > ~/foo/zsh-completions/_configlet

and then either:

  1. Add that directory to your fpath. In your .zshrc:
fpath=(~/foo/zsh-completions $fpath)
  1. Or add a symlink to that file in a place that zsh looks for completions (run echo $fpath to see them). For example:
$ echo $fpath
/usr/local/share/zsh/site-functions /usr/share/zsh/site-functions [...]
$ sudo mkdir -p /usr/local/share/zsh/site-functions
$ sudo ln -s ~/foo/zsh-completions/_configlet /usr/local/share/zsh/site-functions/_configlet

Either way, make sure that completions are also enabled in your .zshrc:

autoload -Uz compinit promptinit
compinit

Then start a new zsh shell, and configlet [Tab] should work.

Bug fixes

  • 1ab75f2 generate: allow a concept slug to contain digits (#664)
  • d5f5485 sync: allow passing both -uy and --tests include|exclude (#674)

User-facing changes

Implementation of configlet completion:

Smaller changes:

  • 5d98c51 cli: add missing dot in help message (#644)
  • 77f7fbf completions: make uuid -n expect an argument (#643)
  • 4447bd2 completions: support completion subcommand (#649)
  • 1d689ed cli, completion: compress some const strings (#652)
  • 121b40e completions(fish): remove invalid file completions (#656)
  • 6b6a780 github(workflows): bump Ubuntu from 20.04 to 22.04 (#590)
  • 88046f4 github(workflows): bump macOS from 11 to 12 (#597)
  • 5f91265 completions(bash, fish): add zsh completion for -s/--shell (#659)
  • f854784 completions(fish): refactor exercise slug completion (#660)
  • d7b5178 completions(bash, fish): tweak formatting (#650)
  • f4561b0 github(workflows), nimble: bump Nim from 1.6.6 to 1.6.8 (#666)

Full Changelog: 4.0.0-beta.5...4.0.0-beta.6