eric-carlsson / compact-git-status

Print compact information about the current git repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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} )"

About

Print compact information about the current git repository

License:GNU General Public License v3.0


Languages

Language:Go 100.0%