A small collection of command-line tools and utilities.
Prints branch, stash, and working tree status for one or more repositories.
git uptodate [<dir>...]Example output:
──── tools ───────────────────────────────────────────────── [!] 2 staged, 1 modified file(s) • main --> origin/main [0 ahead, 0 behind] • c9fa1977f2b0 @ /tmp/tools-detached
brew tap baraverkstad/tools https://github.com/baraverkstad/tools
brew install git-uptodateOptionally create a git alias in ~/.gitconfig:
[alias]
up = uptodateDIR=~/.local/bin
MAN=~/.local/share/man/man1
URL=https://raw.githubusercontent.com/baraverkstad/tools/main
mkdir -p $DIR $MAN
curl -o $DIR/git-uptodate $URL/bin/git-uptodate
curl -o $MAN/git-uptodate.1 $URL/man/git-uptodate.1
chmod +x $DIR/git-uptodateUpdate your PATH/MANPATH if needed in ~/.zshrc:
export PATH="$HOME/.local/bin:$PATH"
export MANPATH="$HOME/.local/share/man:$MANPATH"Prints the YAML front-matter block from one or more files.
frontmatter <file|dir>...brew tap baraverkstad/tools https://github.com/baraverkstad/tools
brew install frontmatterDIR=~/.local/bin
MAN=~/.local/share/man/man1
URL=https://raw.githubusercontent.com/baraverkstad/tools/main
mkdir -p $DIR $MAN
curl -o $DIR/frontmatter $URL/bin/frontmatter
curl -o $MAN/frontmatter.1 $URL/man/frontmatter.1
chmod +x $DIR/frontmatterUpdate your PATH/MANPATH if needed in ~/.zshrc:
export PATH="$HOME/.local/bin:$PATH"
export MANPATH="$HOME/.local/share/man:$MANPATH"