Show Menu
Cheatography

Terminal Utilities Cheat Sheet (DRAFT) by

List of utilities for the terminal

This is a draft cheat sheet. It is a work in progress and is not finished yet.

PDF Line Break

Simple justfile

default: lint build test

# default recipe to display help inform­ation
default:
   @just --list  
# if no default recipe, first recipe will be default

Variable and Substi­­tution

export RUST_B­ACK­TRACE := "­1"

test:
     # will print a stack trace if it crashes
     cargo test
 

Recipe with parameters

# recipe param as env variable with $ sign
hello $name:
    echo $name

backtick - capture output from evaluation

JAVA_HOME := 
jbang jdk home 11
# backtick code block stuff :=
`
   foo="hello"    echo $foo "world"  
`
done BRANCH=
git rev-parse --abbrev-ref HEAD
:   git checkout master sloc:     @echo "
wc -l *.c
lines of code" # backtick works anywhere: string/variable/params