From 947179b9ccec126fd6d89f93d079d402a9d5994f Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Sat, 29 Jan 2011 16:46:46 +0200 Subject: file regex change: get filename up to first space --- git-prompt.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git-prompt.sh b/git-prompt.sh index 341182b..7646eec 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -399,7 +399,7 @@ parse_git_status() { vcs=git ########################################################## GIT STATUS - file_regex='\([^/]*\/\{0,1\}\).*' + file_regex='\([^/ ]*\/\{0,1\}\).*' added_files=() modified_files=() untracked_files=() @@ -612,7 +612,7 @@ j (){ fi done echo '?' -} + } alias jumpstart='echo ${aj_dir_list[@]}' @@ -644,7 +644,7 @@ prompt_command_function() { PS1="$colors_reset$rc$head_local$color_who_where$dir_color$cwd$tail_local$dir_color$prompt_char $colors_reset" unset head_local tail_local pwd -} + } PROMPT_COMMAND=prompt_command_function -- cgit v1.2.3