Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Shell Completion Scripts

Shell completion scripts for Bash, Elvish, Fish, Nushell, PowerShell, and Zsh are available in release archives.

The just binary can also generate the same completion scripts at runtime using just --completions SHELL:

$ just --completions bash > just

Bash

The recommended approach is to use the bash-completions package to lazy-load the completion script:

mkdir -p ~/.local/share/bash-completion/completions
just --completions bash > ~/.local/share/bash-completion/completions/just

If bash-completions is not installed, you can source the completion script in your .bashrc:

source <(just --completions bash)

Elvish

In your rc.elv:

set edit:completion:arg-completer[just] = { |@args|
  eval (just --completions elvish | slurp)
  set @result = (edit:completion:arg-completer[just] $@args)
  put $@result
}

Fish

Save the completion script to the completions directory to lazy-load it:

mkdir -p ~/.config/fish/completions
just --completions fish > ~/.config/fish/completions/just.fish

Nushell

First save the completion script:

just --completions nushell | save -f ($nu.default-config-dir | path join just.nu)

Then in config.nu:

source just.nu

PowerShell

In your PowerShell $PROFILE:

just --completions powershell | Out-String | Invoke-Expression

Zsh

First save the completion script:

mkdir -p ~/.zsh/completions
just --completions zsh > ~/.zsh/completions/_just

Then in your .zshrc:

fpath=(~/.zsh/completions $fpath)
autoload -U compinit
compinit