Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 653 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 653 Bytes

compact-git-status

A utility for printing compact information about the current git repository.

Inspired by bash-git-prompt, this is a portable reimplementaton that has no external dependencies (except git). The program is used as a command line tool and prints to stdout. You are free to call it however and from wherever you want.

Using in tmux

You can call this utility from tmux to print information about the active pane's git repository to the status bar. For example tmux configuration see below.

set -g status-right "#( compact-git-status --path #{pane_current_path} )"