From c9a2fdb4adf4cc87beb77a4179873a623ae12b3b Mon Sep 17 00:00:00 2001 From: Gustavo Delfino Date: Sun, 4 Jul 2010 12:30:20 +0800 Subject: File lists now work under Mac OS X In the file_regex, the ? (for zero or one) repetitions was not being recognized by the sed included in my Mac OS X 10.6 machine. This is now fixed. --- git-prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-prompt.sh') diff --git a/git-prompt.sh b/git-prompt.sh index 88db6bc..f951623 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -414,7 +414,7 @@ parse_git_status() { parse_git_complete ########################################################## GIT STATUS - file_regex='\([^/]*\/\?\).*' + file_regex='\([^/]*\/\{0,1\}\).*' added_files=() modified_files=() untracked_files=() -- cgit v1.2.3