Skip to content

baraverkstad/tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tools & Utilities

A small collection of command-line tools and utilities.

git-uptodate

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

Install via Homebrew

brew tap baraverkstad/tools https://github.com/baraverkstad/tools
brew install git-uptodate

Optionally create a git alias in ~/.gitconfig:

[alias]
    up = uptodate

Manual install

DIR=~/.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-uptodate

Update your PATH/MANPATH if needed in ~/.zshrc:

export PATH="$HOME/.local/bin:$PATH"
export MANPATH="$HOME/.local/share/man:$MANPATH"

frontmatter

Prints the YAML front-matter block from one or more files.

frontmatter <file|dir>...

Install via Homebrew

brew tap baraverkstad/tools https://github.com/baraverkstad/tools
brew install frontmatter

Manual install

DIR=~/.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/frontmatter

Update your PATH/MANPATH if needed in ~/.zshrc:

export PATH="$HOME/.local/bin:$PATH"
export MANPATH="$HOME/.local/share/man:$MANPATH"

About

Command-line tools and utilities.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors