From 4a541b99e644557ff8909f883d4d6cb90a994176 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 21 Sep 2013 17:22:21 +1200 Subject: Complete overhaul of git prompt function This uses the output of ``git status -z --porcelain'', which was designed for exactly this kind of reason. It avoids excessive program calls, forks, and a few subshells, and is consistently faster on everything I've tried so far. --- README.markdown | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index a68331d8..5ad1d32c 100644 --- a/README.markdown +++ b/README.markdown @@ -140,8 +140,7 @@ It expands based on context to include these elements in this order: * The number of running background jobs * The exit status of the last command, if non-zero -This is all managed within the `prompt` function. Some of the Git stuff was -adapted from @necolas’ [superb dotfiles](https://github.com/necolas/dotfiles). +This is all managed within the `prompt` function. When I use any other Bourne-compatible shell, I’m generally happy to accept its defaults for interactive behavior. -- cgit v1.2.3