Tab completion
- .just
Tab completion suggestions based on parsing the Justfile
’s case statements can easily be added to your bash session by sourcing the .just
file. Note: this file is sourced for you when you source the setup file
The tab completion script can be extended by adding a .just
file to your project next to the Justfile
. Put what would normally go inside the complete -F
function in the .just
file (but without the bash function()
header). This file will be sourced by .just
after the just_commands
and _just_subcommands
arrays are populated. See just’s default implementation here for an example.
The project’s .just
file can optionally set a JUST_RETURN
variable that will stop the execution of the rest of .just
and return the value of JUST_RETURN
. This is useful when you do not want the rest of the default behavior in a particular case.
Warning
Does not work in zsh
, or any shell other than bash