/shprompt

A C11 git enabled shell prompt

Primary LanguageCGNU General Public License v3.0GPL-3.0

shprompt

A rewrite of my personal git enabled shell prompt in plain C11.

This version aims to replicate the design of Gondolin.

Configuration

You can configure the symbols by modifying config.h.

How to Use

  1. Install cmake.
  2. Clone this repository.
  3. Inside the cloned repo do
    mkdir build
    cd build
    cmake -DCMAKE_BUILD_TYPE=Release ..
    make
    cp shprompt/shprompt /usr/local/bin
    
  4. Add the following snippet to your config.fish
    function fish_prompt
      shprompt --status $status
    end
    

Options

For options see shprompt --help.