Skip to content

sbstnc/shprompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.