mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-16 20:20:57 +01:00
added completion support
This commit is contained in:
48
tablizer.pod
48
tablizer.pod
@@ -227,6 +227,54 @@ precedence over environment variables.
|
||||
|
||||
=back
|
||||
|
||||
=head2 COMPLETION
|
||||
|
||||
=over
|
||||
|
||||
=item Bash:
|
||||
|
||||
source <(%[1]s completion bash)
|
||||
|
||||
To load completions for each session, execute once:
|
||||
|
||||
# Linux:
|
||||
$ tablizer completion bash > /etc/bash_completion.d/%[1]s
|
||||
|
||||
# macOS:
|
||||
$ tablizer completion bash > $(brew --prefix)/etc/bash_completion.d/%[1]s
|
||||
|
||||
=item Zsh:
|
||||
|
||||
If shell completion is not already enabled in your environment,
|
||||
you will need to enable it. You can execute the following once:
|
||||
|
||||
echo "autoload -U compinit; compinit" >> ~/.zshrc
|
||||
|
||||
To load completions for each session, execute once:
|
||||
|
||||
$ tablizer completion zsh > "${fpath[1]}/_%[1]s"
|
||||
|
||||
You will need to start a new shell for this setup to take effect.
|
||||
|
||||
=item fish:
|
||||
|
||||
tablizer completion fish | source
|
||||
|
||||
To load completions for each session, execute once:
|
||||
|
||||
tablizer completion fish > ~/.config/fish/completions/%[1]s.fish
|
||||
|
||||
=item PowerShell:
|
||||
|
||||
tablizer completion powershell | Out-String | Invoke-Expression
|
||||
|
||||
To load completions for every new session, run:
|
||||
|
||||
tablizer completion powershell > tablizer.ps1
|
||||
|
||||
and source this file from your PowerShell profile.
|
||||
|
||||
=back
|
||||
|
||||
=head1 BUGS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user