canonical / canonical/multipass

[cli] Tab completion for zsh / tcsh / fish

Open
#3,436 4 comments 3 reactions 0 assignees View on GitHub
CLI shell completion
Dominant language
C++
Stars
9.2k
Forks
828
Avg merge
3d 1h
Merged PRs (30d)
44

Description

**Describe the bug**
Tab completion on Ubuntu only works for bash.

**To Reproduce**
How, and what happened?
1. `zsh`
1. `multipass `
1. lists directory contents

**Expected behavior**
show commands like for bash

I would suggest adding completion scripts for zsh, tcsh and fish.
https://snapcraft.io/docs/tab-completion suggests this is possible referencing https://github.com/snapcore/snapd/blob/master/data/completion/bash/complete.sh

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing bash completion implementation in Multipass and compare it with the snapd completion example linked in the issue. Add equivalent completion scripts for zsh, tcsh, and fish, then verify that typing `multipass ` shows commands rather than directory contents in each shell.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, fish, shell, zsh
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.