Re: [dev] suckless shell prompt?

From: sin <sin_AT_2f30.org>
Date: Thu, 21 Nov 2013 18:03:59 +0200

On Thu, Nov 21, 2013 at 04:54:55PM +0100, Markus Teich wrote:
> Heyho,
>
> I've written a simple shell prompt programm in C. It takes up to two arguments
> (term width and last exit status code) and prints a pretty prompt containing
> info about git if you are inside a repository. Since I did not want to call
> multiple git and sed processes every time the prompt gets drawn, I use a single
> binary linking libgit2. The sloccount currently is at 286 lines of C code, but
> in some cases too complex for my liking. Therefore I would love to get some
> improvement ideas from you guys.
>
> You can find the project on github: https://github.com/schachmat/slcp

% echo this rox
this rox

bye,
sin
Received on Thu Nov 21 2013 - 17:03:59 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 21 2013 - 17:12:06 CET