Command completion
Command completion
Section titled “Command completion”Note: this is typically not needed, as when installing the shell function manually via source the shell function, the completion script is already included.
Install the completion script by running:
echo 'source <(switch completion bash)' >> ~/.bashrcecho 'source <(switch completion zsh)' >> ~/.zshrcecho 'kswitch completion fish | source' >> ~/.config/fish/config.fishPowershell
Section titled “Powershell”echo 'kswitch completion powershell' >> $PROFILEecho 'Register-ArgumentCompleter -CommandName ''kswitch_windows_amd64'' -ScriptBlock $__kswitchCompleterBlock' >> $PROFILEecho 'Register-ArgumentCompleter -CommandName ''kswitch'' -ScriptBlock $__kswitchCompleterBlock' >> $PROFILE. $PROFILE