Skip to content

Shell Autocompletions

Gtheme provides tab completion for all commands, including dynamic completion of desktop and theme names. Completions are regenerated automatically when desktops or themes are added or removed.

Setup

Add the completions directory to your fpath in ~/.zshrc:

Terminal window
fpath=($HOME/.gtheme/completions $fpath)

This line must be placed before the call to compinit:

Terminal window
fpath=($HOME/.gtheme/completions $fpath)
autoload -Uz compinit && compinit

If you don’t have a compinit call, add one after the fpath export.