Just - GradedJestRisk/linux-training GitHub Wiki
Just
Just is like makefile or package.json, except you don't want to compile at all. It contains local aliases to command you run frequently in a project.
https://cheatography.com/linux-china/cheat-sheets/justfile/
Install
Use snap (or something else)
snap install --edge --classic just
Add completion using oh-my-zsh (source)
# check that fpath target this folder
echo $fpath | grep "$HOME/.oh-my-zsh/completions"
# create this folder
local ZSH_COMPLETIONS_DIR="$HOME/.oh-my-zsh/completions"
mkdir --parents $ZSH_COMPLETIONS_DIR
# generate completion script
just --completions zsh > "${ZSH_COMPLETIONS_DIR}/_just"
# logout
exit
Create
touch justfile
Define your recipe
hello:
echo "Hello, world!"
Call it (press tab twice)
just
If working, autocompletion should display
> just
hello
Call it striking Enter It should display the recipe script and execute it
echo "Hello, world!"
Hello, world!
Integrate
Load .env file
set dotenv-load