summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2011-01-29 16:46:46 +0200
committerLeonid Volnitsky <Leonid@Volnitsky.com>2011-01-29 16:46:46 +0200
commit947179b9ccec126fd6d89f93d079d402a9d5994f (patch)
tree5a7abcca86f3ac90feecba05746bda9ff9f044ac
parentMerge branch 'test' (diff)
downloadgit-prompt-947179b9ccec126fd6d89f93d079d402a9d5994f.tar.gz
git-prompt-947179b9ccec126fd6d89f93d079d402a9d5994f.tar.bz2
git-prompt-947179b9ccec126fd6d89f93d079d402a9d5994f.zip
file regex change: get filename up to first space
-rwxr-xr-xgit-prompt.sh6
1 files 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