Skip to content

Add bash, zsh, and fish shell completions for janet#1753

Merged
bakpakin merged 1 commit into
janet-lang:masterfrom
a-rybnikov:feat/shell-completions-1567
May 19, 2026
Merged

Add bash, zsh, and fish shell completions for janet#1753
bakpakin merged 1 commit into
janet-lang:masterfrom
a-rybnikov:feat/shell-completions-1567

Conversation

@a-rybnikov

Copy link
Copy Markdown
Contributor

Closes #1567

Adds shell completion scripts for the janet interpreter in misc/completion/:

  • janet.bash — bash completion (compatible with bash-completion framework)
  • janet.zsh — zsh completion using _arguments
  • janet.fish — fish completion
  • README.md — installation instructions for each shell

All flags from the man page are covered with appropriate argument handling:

  • -m completes directories (syspath)
  • -c and -l complete .janet files
  • -w and -x complete linting levels (:none :relaxed :normal :strict)
  • default argument completes .janet files

Adds completion scripts for the janet interpreter covering all
flags documented in the man page: -h -v -s -e -E -d -n -N -r -R
-p -q -k -i -m -c -l -w -x --.

Flag-aware completions: -m completes directories, -c/-l complete
.janet files, -w/-x complete linting levels.

Closes #1567
@bakpakin

Copy link
Copy Markdown
Member

Thanks, these look great!

@bakpakin bakpakin merged commit 2814fc5 into janet-lang:master May 19, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bash Completions

2 participants